Data Science Center

Twelve labs, thirty-plus interactive experiments, a project studio that analyses your files locally, a dataset library, learning paths and a specialised assistant.

41interactive experiments

Data Science Center

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

  1. Open the SQL playground
  2. Solve the challenges in order
  3. Check with the checker button
  4. Write a query of your own
  5. 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

  1. 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)