Comparison Operators
SQL provides several operators for comparing values:
| Operator | Meaning |
|---|---|
= | Equal to |
<> or != | Not equal to |
> | Greater than |
< | Less than |
>= | Greater than or equal |
<= | Less than or equal |
Exercises
Loading exercise...
Loading exercise...
Loading exercise...
Loading exercise...
Loading exercise...
Free Practice
Loading SQL editor...
Try these:
- Find users between certain ages (you'll need AND - covered in next lesson)
- Find users not from a specific city
- Compare different age thresholds
Up next · Lesson 7 of 27
Combining Conditions with AND/OR
1 min read
6 of 27 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

