Practice
Build your SQL skills step by step.
Choose a topic and solve practical questions against the Hospital Database. Your progress is saved in this browser.
0 of 52 completed
Topics
- Selecting columns6 questions
Choose which data to return.
- Filtering rows5 questions
Filter data with WHERE conditions.
- Distinct values2 questions
Find unique values in a column.
- Sorting and limits4 questions
Order query results and limit rows.
- Aggregate functions4 questions
Summarise rows with COUNT, AVG, MIN, MAX, and SUM.
- GROUP BY6 questions
Summarise data within groups.
- HAVING2 questions
Filter grouped results.
- Joins12 questions
Combine related tables.
- Subqueries4 questions
Use one query inside another.
- CASE expressions3 questions
Return conditional values.
- NULL values2 questions
Find and handle missing data.
- Window functions2 questions
Calculate across related rows without collapsing the result.
All questions use a fresh copy of the sample database when checked. Your playground data stays separate.