1. Ask better data questions
4 min
One idea
Good SQL starts before SQL. First write the product question so clearly that another person can build the same query.
A clear question names the metric, who it is about, the event or table, the time period, and how the result should be grouped.
Why this matters
Most bad analytics projects do not fail because of syntax. They fail because the question is vague.
“How is our app doing?” can mean signups, payments, retention, active users, or revenue. Each needs a different query and a different answer.
Question checklist
Do each one yourself, then tap it to tick it off. The ticks are only a checklist for you: they are not marked or scored.
0 of 5 done
Make it queryable
Here is a weak question and a better version for a campus food ordering app.
The better version is ready for SQL because it tells you what to count and how to group it.
Weak: Are users ordering food?
Better: For users in Bengaluru, how many paid orders were placed each day from 1 Jan 2026 to 7 Jan 2026?
Metric: paid orders
Rows included: orders where status = 'paid'
Time range: 2026-01-01 to 2026-01-07
Group by: order date
Filter: city = 'Bengaluru'