Phase 3 — Data Processing | Milestone 2/3 bridge
Use SQL to query your dataset and answer real business questions.
Topics:
- SELECT, FROM, WHERE, ORDER BY, LIMIT
- COUNT, SUM, AVG, MIN, MAX
- GROUP BY and HAVING
- Aliases and calculated columns
- INNER JOIN and LEFT JOIN
- Basic date filters and null checks
- Turn business questions into SQL questions
Primary: SQLBolt — interactive SQL practice
Optional: W3Schools SQL Tutorial — reference and examples
Load the working dataset into a local database and write at least 3 SQL queries that answer business questions from your problem statement.
SQL script or notebook section with 3 answered business questions.
Estimated time: 5 hours
Translate each project question into a SQL query frame:
-- Question 1: How does <your_kpi_name> change by <time_or_group>?
SELECT
<time_or_group>,
AVG(<your_metric_column>) AS avg_metric
FROM <your_table_name>
GROUP BY <time_or_group>
ORDER BY <time_or_group>;
-- Question 2: Which <category> has the highest <metric>?
SELECT
<category_column>,
SUM(<metric_column>) AS total_metric
FROM <your_table_name>
GROUP BY <category_column>
ORDER BY total_metric DESC;- Write the business question in plain language before writing SQL.
- Use columns that already exist in your raw or working dataset.
- Keep the first three queries simple and directly tied to the problem statement.
- You have at least 3 SQL queries.
- Each query answers a real project question, not a random practice question.
- The results are understandable enough to discuss in plain language.
- Your SQL can be re-run by a reviewer.
- Writing queries that explore the data but do not answer the project question.
- Using
SELECT *instead of choosing useful columns. - Forgetting
GROUP BYwhen aggregating. - Writing SQL without any note explaining what question it answers.
- Start with one question that begins with "how many," "which group," or "how has it changed over time."
- Use a tiny sample table first if the full dataset feels overwhelming.
- Post one business question and your attempted query so others can help debug the logic.