SQL exercises
Filter by difficulty, topic, or the business database behind the question. Progress stays on this device until you create an account.
Loading exercises…
Filter by difficulty, topic, or the business database behind the question. Progress stays on this device until you create an account.
Loading exercises…
List every product Northwind can still sell, with price and remaining stock.
E-commerce · 8 min
SELECT · WHERE
Start challengeFind the customers Northwind serves in Germany.
E-commerce · 6 min
SELECT · WHERE
Start challengeShow the five customers who created accounts most recently.
E-commerce · 7 min
SELECT · ORDER BY · LIMIT
Start challengeRank the catalog by price and return the five most expensive products.
E-commerce · 7 min
SELECT · ORDER BY · LIMIT
Start challengeList each category Northwind sells, once.
E-commerce · 6 min
SELECT · DISTINCT
Start challengeFind products whose stock has not been recorded.
E-commerce · 8 min
SELECT · WHERE · NULL handling
Start challengeList employees who joined on or after 1 January 2023.
HR · 8 min
SELECT · WHERE · Date functions
Start challengePull marketing leads that have not been qualified yet.
Marketing · 6 min
SELECT · WHERE
Start challengeList students enrolled in the Computer Science program.
University · 6 min
SELECT · WHERE
Start challenge