Loading lesson…
Level 1 · Apprentice0 XP
Ask questions of your data with SELECT, WHERE, JOIN, GROUP BY and ORDER BY.
Step 1 / 6
ProblemTo answer 'which customers spent most last month?', someone exports three tables to spreadsheets and matches them by hand every Monday.
← → step
Before this: The relational model
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.With a sample shop database (or Postgres's pgbench tables), write queries for: customers with no orders, revenue per month, the top 5 products by quantity, and customers who ordered in every month this year.