SQL practice: ORDER BY, LIMIT and OFFSET
Chapter 6 · 10 questions · free to solve
Question 1 · easy
Solve it in your browserList all customers sorted by city A→Z.
Question 2 · easy
Solve it in your browserList the 5 cheapest products.
Question 3 · medium
Solve it in your browserList all employees from highest paid to lowest.
Question 4 · medium
Solve it in your browserList products sorted by category A→Z, and within each category by price high→low.
Question 5 · medium
Solve it in your browserShow the products ranked 4th to 6th most expensive.
Question 6 · medium
Solve it in your browserShow the 3 most recent orders.
Question 7 · medium
Solve it in your browserShow the 5 oldest customers by signup_date. What happens to Nova Interiors, whose date is empty?
Question 8 · medium
Solve it in your browserShow the single most profitable product per unit (price minus cost).
Question 9 · hard
Solve it in your browserIf a web page shows 4 products per page, write the query for page 3, sorted by name A→Z.
Question 10 · hard
Solve it in your browserShow the 3 most expensive products, priciest first. This query returns the 3 cheapest instead. Fix it.
These questions are free.
Make a free account to solve them, with instant checking and an AI tutor for hints.
Start free