Your question is SQL Funnel Drop-Off Analysis. Start with the requirements and the two 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.
Airbnb wants to understand where users drop out of the Airbnb Homes booking funnel in the mobile app. Write a PostgreSQL query for February 2025 that measures sequential funnel engagement.
airbnb_app surface, joining valid users from users.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Airbnb user identifier |
| signup_date | DATE | Date the user signed up |
| country_code | VARCHAR(2) | Two-letter user country code |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique funnel event identifier |
| user_id | INT | References users.user_id |
| event_type | VARCHAR(30) | Airbnb Homes funnel action |
| event_timestamp | TIMESTAMP | Timestamp when the event occurred |
| surface | VARCHAR(20) | Product surface generating the event |