SQL Essentials Test

Updated · 6 min read
easyPostgreSQL 18sqltestquizassessment

This test checks the 40 lessons of the Essentials path, the shortest route to useful SQL. It is 25 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: 25, about one per lesson or topic on the path.
  • Time: about 30 minutes, without notes.
  • Pass mark: 19 out of 25.
  • Hands-on practice: the SQL Problem Lab has business requests to solve with real queries on the shop dataset.

The Test

SQL Essentials Test

25 questions
1Which clause chooses the columns in the result?
2Which keeps rows where the fee is over 400 and the level is Beginner?
3WHERE state IN ('CA', 'TX') is the same as:
4Which returns the 3 most expensive courses?
5A column alias is written with:
6INSERT INTO students (student_id, first_name) VALUES (104, 'Ana'); fails if other columns are:
7count(*) and count(email) differ when:
8Which shows each student's total paid?
9A CHECK (fee_usd > 0) constraint:
10Which type is best for an id that grows automatically?
11Which join keeps every student even without payments?
12EXISTS (subquery) is true when the subquery returns:
13Which query uses a subquery correctly to find courses costing more than average?
14CASE WHEN fee_usd >= 500 THEN 'premium' ELSE 'standard' END returns, for a fee of 500:
15date_trunc('month', DATE '2025-12-19') gives:
16A view is a good fit for:
17Adding an index usually:
18BEGIN; ...; COMMIT; gives you:
19A CTE starts with the keyword:
20sum(amount_usd) OVER (PARTITION BY student_id):
21SQL injection is prevented by:
22In PostgreSQL, PREPARE q(int) AS SELECT ... WHERE id = $1; then EXECUTE q(101);:
23DELETE FROM payments; with no WHERE:
24A foreign key column usually:
25UNION combines:

What Your Score Means

ScoreWhat to do
23 to 25Excellent. Try the SQL Query Puzzles and the SQL Mock Interview.
19 to 22A pass. Reread the lessons linked from the questions you missed.
Below 19Not yet. Work through the linked lessons and take the test again.

Was this tutorial helpful?