Welcome to the SQL screen.
The question is on your right: Find Largest Funnel Step Drop-Off. Read through the requirements and the three tables first.
Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?
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 |