Loading…
Loading…
Thirty questions on data types and casting, string functions, splitting and aggregating text, rounding and statistics, dates, times and time zones, date arithmetic, calendars, regular expressions and JSON, with explanations.
Review quiz for Part 8 (Data types and functions) of the SQL course:
The questions use the shop database from Part 3:
products (7 rows): Ridge 2 tent 249.99, Summit 4 tent 489.00, Glow head torch 34.50, Basecamp lantern 27.00, Trail 30 backpack 89.95, Day 18 backpack 54.00 and Merino socks 16.00, in categories tents, lighting, packs and clothing.orders (6 rows): 101 on 2 March 2026, 102 on 5 March, 103 on 9 March, 104 on 15 March, 105 on 20 March and 106 on 22 March.product_specs, from the JSON article: a jsonb document for products 1, 2, 3 and 5, each with a colours array (2, 1, 2 and 3 colours).Unless a question names another database, the answer is for PostgreSQL. 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 9.
Quiz path: step 7. Take the quizzes in this order, after reading each article.
Previous quiz: Changing Data Review (SQL Part 7)
Next quiz: Reporting and Advanced Queries Review (SQL Part 9)
30 questions · pass at 70%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.