Airbnb
Foundations Track · Easy · 15 min
Find Total Time Spent By Each Employee
Use this Airbnb weekly brief to work on find total time spent by each employee. Return each app_id and the total number of click events recorded in 2024. Sor...
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a Airbnb-tagged business scenario.
Approach
Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.
Company context
Company labels are directional practice context, not official interview guidance.
Use this Airbnb weekly brief to work on find total time spent by each employee. Return each app_id and the total number of click events recorded in 2024. Sort by app_id.
app_events
| event_id | app_id | event_type | |
|---|---|---|---|
| 1 | 10 | click | 2024-01-01 09:00:00 |
| 2 | 10 | impression | 2024-01-01 09:01:00 |
| 3 | 10 | click | 2024-02-10 10:00:00 |
| 4 | 20 | click | 2024-03-03 14:00:00 |
| 5 | 20 | click | 2023-12-31 23:00:00 |
SQL workspace
Run queries against the protected question data, then submit once the result shape looks right.
Sign in to run SQL
Create a free account or sign in before running queries against protected question data.