Your question is Find Largest Funnel Step Drop-Off. Start with the requirements and the three tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
StreamFlow tracks users moving through a signup funnel. Write a SQL query to identify the biggest drop-off between consecutive funnel steps for each funnel version.
completed_flag = true.| Column | Type | Description |
|---|---|---|
| step_idPK | INT | Unique step identifier |
| funnel_version | VARCHAR(20) | Funnel version label |
| step_name | VARCHAR(50) | Name of the funnel step |
| step_order | INT | Step position within the funnel |
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| acquisition_channel | VARCHAR(30) | Marketing acquisition source |
| signup_date | DATE | Date the user signed up |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User who triggered the event |
| step_id | INT | Funnel step reached |
| event_time | TIMESTAMP | Time of the event |
| completed_flag | BOOLEAN | Whether the step was completed |