Comparison Operators
Use = <> != < > <= >= in WHERE. Text values go in single quotes.
Example
SELECT name, score FROM students
WHERE score >= 85 AND country <> 'Ghana';Result
name | score Ada | 92 Amina | 85 Zainab | 88
Exercise
Not equal.
WHERE country 'Ghana'
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.