Your question is Analyze Signup Funnel 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 wants to measure where users drop off in its onboarding funnel. Write a PostgreSQL query to calculate how many users reached each funnel step and how many dropped before the next step within a 7-day window from signup.
landing_view signup_started email_verified subscription_started.2024-01-01 and 2024-01-31.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| signup_date | DATE | Date the user registered |
| acquisition_channel | VARCHAR(50) | Marketing acquisition source |
| Column | Type | Description |
|---|---|---|
| step_namePK | VARCHAR(50) | Name of the funnel step |
| step_order | INT | Step sequence in the funnel |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User who generated the event |
| event_name | VARCHAR(50) | Event type corresponding to a funnel step or other action |
| event_time | TIMESTAMP | Time the event occurred |
| device_type | VARCHAR(20) | Device used for the event |