Skip to content
Justice Tech School

Practice: Top Students

Combine WHERE, ORDER BY and LIMIT to list the top three scorers.

Example
SELECT name, score FROM students WHERE score IS NOT NULL ORDER BY score DESC LIMIT 3;

Result

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

Exercise

Limit to 3.

LIMIT 

Quiz Test

Which clause picks the top rows?

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