← SQL Operations Cases My saved work →
Independent practice · SQLite
Count unique customers by stage
Practice dataset
Your work
Active 0:00 · Paused 0sKeep a handoff you can replay
Check your current answer, then download the output and its report. The report includes the source, answer and each check so you can review what passed and what needs work.
To replay your work, open this task with the same dataset, import your answer and check it again.
Show the reference answer
SELECT stage, COUNT(DISTINCT customer_id) AS customers FROM events GROUP BY stage
The repeated visit from customer 1 must count once.