SQL Tutorial

SQL If...Else

Conditional Statements

Use conditions to run different code paths based on logical tests.

SELECT * FROM courses WHERE price > 1000;
Try it Yourself
Run this SQL example in your local environment or course sandbox.