Lesson 12

Top-N Queries

Find the top or bottom N rows — used in almost every real report.

Coming Soon

This lesson is being written. Check back soon, or continue with the lessons above.

Editor note: Add your concept explanation here, followed by \\\sql code examples, then \\\exercise blocks using the standard format.

Exercise format reminder

sql
-- Add your example queries here
SELECT * FROM customers;
Exercise 1 Easy
Your practice question here.
Hint: Optional hint text
Solution
SELECT * FROM customers