Weekend vs weekday fares
EasyUberday of weekcase whenaggregation· 10 XP
Uber's pricing team wants a quick check: do riders pay more per trip at the weekend?
For completed trips, compare weekends (Saturday and Sunday) with weekdays: show the number of trips and the average fare.
Expected output
day_typeis'weekend'or'weekday';avg_farerounded to 2 decimals
Example of the shape (made-up values):
| day_type | trips | avg_fare |
|---|---|---|
| weekend | 380 | 19.75 |
Hints, the later questions and the answer come with Pro.
Write your query here. Ctrl + Enter submits.