SQL Statement:

x
 
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;
        

Edit the SQL Statement, and click "Run SQL" to see the result.

Result:

Click "Run SQL" to execute the SQL statement above.
W3Schools has created an SQL database in your browser.
The menu to the right displays the database, and will reflect any changes.
Feel free to experiment with any SQL statement.
You can restore the database at any time.

The Try-SQL Editor ?
at w3schools.com

Your Database: