All quizzes
Free quiz · 50 questions in the bank

Sql quiz

Test your Sql knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does `INNER JOIN` return?

Questions in this quiz
  1. What does `INNER JOIN` return?
  2. What does `SELECT DISTINCT col FROM t` return?
  3. How do you limit a result to the first 10 rows in standard SQL (and PostgreSQL/MySQL/SQLite)?
  4. What does `SELECT * FROM t` do?
  5. ``` SELECT user_id, COUNT(*) AS orders FROM orders WHERE created_at >= '2026-01-01' GROUP BY user_id HAVING COUNT(*) > 5; ``` What does this return?
  6. What does SQL stand for, and what is it primarily used for?
  7. ``` SELECT u.name, o.id FROM users u JOIN orders o ON o.user_id = u.id; ``` Which type of join is this (implicit / explicit)?
  8. What is the default sort direction of `ORDER BY col`?
  9. Which keyword sorts the result set?
  10. What is the purpose of a column alias (`SELECT total AS amount`)?
  11. Which clause filters rows in a query?
  12. What does a `PRIMARY KEY` constraint guarantee?
Gaps to close?
Read the curated Sql notes — core concepts, patterns, interview prep.
Sql notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web