SQL quizzes
The standard language for asking questions of relational data.
Practise SQL with short quizzes that mix concept checks, code reading and debugging, from beginner to intermediate level.
SQL quiz levels
Difficulty rises through concepts (code reading, debugging, edge cases, trade-offs), not through trick wording.
- Beginner
Core vocabulary and fundamentals.
- SQL Basics · 7 questions
- Basic
Practical, everyday usage.
- SQL Query Lab · 5 activities
- Intermediate
Concepts applied to real problems.
- Joins & Aggregation · 7 questions
Topics covered in the SQL quizzes
Every topic below appears in at least one question today. The number is how many questions cover it.
- Joins · 3
- Aggregates · 2
- Aggregation · 1
- Constraints · 1
- Filtering · 1
- Indexes · 1
- Injection · 1
- NULL · 1
- Pattern matching · 1
- Set operations · 1
- Sorting · 1
How this works
Practice or exam mode
Practice mode explains each answer straight away. Exam mode holds all answers until you finish, then shows a full review.
Shuffled answer order
Options are shuffled on every attempt, so you learn the idea rather than the position of the right letter.
Timer, flags and skips
A timer runs while you play. Flag questions to revisit them, or skip and come back from the question navigator.
Saved on your device
Scores, streaks and topic accuracy are stored in your browser only. There is no account.
Learn SQL first, or keep going
SQL Practice Questions with Solutions for Beginners
Nine hands-on SQL exercises on a small student database, from filtering and grouping to joins and safe updates, each with a worked solution and the reasoning behind it.
ArticleSQL Indexes Explained: How They Speed Up Queries and When They Do Not
What a database index is, how it speeds up lookups, what it costs on writes, how to choose columns and column order, and how to check whether a query really uses an index.
ArticleSQL Joins Explained with Real Questions
INNER, LEFT and anti-joins explained through the question each one answers, plus the WHERE-versus-ON mistake that silently drops rows.
Related technologyMongoDB quizzes
Document database: flexible schemas, rich queries and aggregation.
Related technologyJava quizzes
Strongly typed, object-oriented and everywhere in enterprise and Android.
SQL quiz FAQ
How many SQL quizzes are there?
There are currently 2 multiple-choice SQL quizzes with 14 questions in total, plus 1 interactive challenge. The numbers on this page come from the live quiz catalogue.
Which SQL quiz should I start with?
Start with SQL Basics, the beginner-level quiz. Then work up through Basic, Intermediate.
Are the SQL quizzes free?
Yes. There is no sign-up. Your scores and streaks are stored in your own browser.
Do the SQL quizzes explain the answers?
Yes. Every question has an explanation covering why the right answer is correct and why the tempting alternatives are not.
Which SQL dialect is used?
Standard SQL. Where MySQL and PostgreSQL differ, the explanation notes it.
Are these quizzes good for Data Analyst interviews?
Yes. Joins, GROUP BY, HAVING, and subqueries are the most frequently asked concepts in data analyst SQL rounds.
Do you cover database design or normalization?
Currently, the focus is on querying existing data (DML). Normalization and schema design (DDL) are planned for future Expert-level modules.
Is NoSQL covered here?
No. SQL covers relational databases. For NoSQL concepts, please check our MongoDB roadmap.