Answers for "switch case in sql"

SQL
1

Case in sql

SELECT OrderID, Quantity,
CASE
    WHEN Quantity > 30 
  THEN 'The quantity is greater than 30'
    WHEN Quantity = 30 THEN 'The 
  quantity is 30'
    ELSE 'The quantity is under 30'
END AS QuantityText
FROM OrderDetails;
Posted by: Guest on August-12-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language