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
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.