Skip to content
Justice Tech School

ANY and ALL Alternatives

Compare with a list using MAX or MIN when ANY and ALL are missing, as in SQLite.

Example
SELECT name, score FROM students
WHERE score > (SELECT MAX(score) FROM students WHERE country = 'Ghana');

Result

name   | score
Ada    | 92
Amina  | 85
Zainab | 88

Exercise

Beat the best of a group.

score > (SELECT (score) FROM students)

Quiz Test

Greater than ALL equals greater than?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.