Loading…
Loading…
Thirty questions on tables and keys, SQL statement types and dialects, the logical order of query clauses, SELECT expressions, WHERE, IN, BETWEEN, LIKE, NULL and three-valued logic, ORDER BY, DISTINCT, row limits, pagination and CASE, with explanations.
Review quiz for Part 1 (Foundations) and Part 2 (Querying a Single Table) of the SQL course:
Questions that use a table refer to the course's products table from Part 2:
| product_id | name | category | brand | price | stock | weight_g |
|---|---|---|---|---|---|---|
| 1 | Ridge 2 tent | tents | Alpina | 249.99 | 12 | 2100 |
| 2 | Summit 4 tent | tents | Alpina | 489.00 | 3 | 4300 |
| 3 | Glow head torch | lighting | Lumen | 34.50 | 40 | 90 |
| 4 | Basecamp lantern | lighting | NULL | 27.00 | 15 | NULL |
| 5 | Trail 30 backpack | packs | Kestrel | 89.95 | 22 | 1150 |
| 6 | Day 18 backpack | packs | Kestrel | 54.00 | 0 | 640 |
| 7 | Merino socks | clothing | Woolly | 16.00 | 75 | 80 |
Every question with a query was run on PostgreSQL 17 to confirm its answer. Aim for at least 21 out of 30 before starting Part 3.
Quiz path: step 1. Take the quizzes in this order, after reading each article.
Next quiz: Joins and Set Operations Review (SQL Part 3)
30 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.