Free SQL Fundamentals Practice Quiz

12 practical SQL Fundamentals questions with an explanation after every answer. No timer, no signup — about 8 minutes.

About the SQL Fundamentals skill quiz

This SQL Fundamentals quiz is a Practical fundamentals check. It covers SELECT, WHERE, joins, aggregation, GROUP BY, HAVING, indexes, primary keys, transactions, NULLs, and ordering. The quiz has 12 questions, takes about 8 minutes, and a score around 8 out of 12 means you have a workable baseline.

The 12 questions on this page are built for practical query fluency screening. They focus on practical decisions you would make while building, debugging, querying, or operating real projects.

Related SQL Fundamentals Practice Questions

Sample SQL Fundamentals questions

Three examples from the 12-question quiz. Answers stay hidden until you reveal them.

Sample Question 1Transactions

What does COMMIT do in a transaction?

ASaves the transaction changes permanently
BCancels the transaction changes
CCreates a new table
DLists open locks only
Show answer
Answer: A — Saves the transaction changes permanently

COMMIT makes the transaction changes durable. ROLLBACK cancels uncommitted changes.

Sample Question 2Nulls

Which predicate checks for missing NULL values?

A= NULL
BIS NULL
CNULL()
DHAS NULL
Show answer
Answer: B — IS NULL

Use IS NULL or IS NOT NULL. Comparisons like = NULL do not behave as ordinary equality because NULL means unknown.

Sample Question 3Sorting and Limits

Which clause controls result order?

AORDER BY
BGROUP BY
CWHERE
DJOIN
Show answer
Answer: A — ORDER BY

ORDER BY sorts result rows. Without it, SQL does not guarantee row order.

Try another tech quiz

Compare your fundamentals across Git, AWS, Linux, SQL, Python, and Docker.

See all free quizzes