SQL Deep Dive Test

Updated · 5 min read
hardPostgreSQL 18sqltestquizassessment

This test checks the Under the hood sections: three-valued logic, processing order, join algorithms, the WAL, MVCC, plans and indexes. It is 20 multiple-choice questions, marked for you as soon as you submit. Each answer explains why, and links to the lesson that teaches it, so a wrong answer tells you exactly what to reread.

How the Test Works

  • Questions: 20, about one per lesson or topic on the path.
  • Time: about 30 minutes, without notes.
  • Pass mark: 15 out of 20.
  • Hands-on practice: the SQL Problem Lab has business requests to solve with real queries on the shop dataset.

The Test

SQL Deep Dive Test

20 questions
1WHERE x <> 5 keeps rows where x is NULL?
2In which clause can you first use a SELECT alias in PostgreSQL?
3A hash join is usually chosen when:
4COMMIT survives a crash because:
5A recursive CTE works on:
6Window functions are evaluated:
7Under Repeatable Read in PostgreSQL, a transaction:
8After an UPDATE in PostgreSQL, the old row version:
9VACUUM (not FULL) mainly:
10The planner chooses a plan using:
11In EXPLAIN ANALYZE, a big gap between estimated and actual rows suggests:
12An index-only scan needs:
13A B-tree index helps LIKE 'Nav%' (with a suitable collation or text_pattern_ops) but not:
14work_mem affects:
15A correlated subquery can be slow because:
16SELECT ... FOR UPDATE in PostgreSQL:
17Serializable isolation in PostgreSQL may:
18fillfactor below 100 on a table helps:
19Join order in a query with many joins is chosen by:
20A partial index (WHERE active) is useful when:

What Your Score Means

ScoreWhat to do
18 to 20Excellent. Try the SQL Query Puzzles and the SQL Mock Interview.
15 to 17A pass. Reread the lessons linked from the questions you missed.
Below 15Not yet. Work through the linked lessons and take the test again.

Was this tutorial helpful?