SQL analytics practice
عربيIntermediate
Problem
How do we answer business questions with SQL alone?
Goal
Solve the ten challenges and interpret what they return.
Dataset
Sales (synthetic) Synthetic, generated in the browser
Work steps
- Open the SQL playground
- Solve the challenges in order
- Check with the checker button
- Write a query of your own
- Note what each error taught you
Statistical methods
- JOIN
- GROUP BY
- Window functions
Challenges
- Row fan-out after joins
- Handling NULL
Discussion questions
- How do you verify a query?
- When do you prefer a CTE?
Tools used
- SQL Playground
Expected outcomes
Mastery of the core operations is shown by solving the challenges, which are auto-checked. No result figures are published here.
No recorded results are shown here; your results come from running the project on the data.
References
- Codd, E. F. (1970). A relational model of data for large shared data banks. Communications of the ACM, 13(6), 377-387 DOI (bibliographic data entered by the editor, not machine-checked)
