Explain the differences between star schema and snowflake schema; when would you choose one over the other for Uber-scale data?
Using the provided Uber trip and location tables, produce the requested aggregate as a concrete SQL example. Keep the explanation focused on dimensional modeling, query behavior, and scale-related trade-offs.
Output
- One row per city, with
city_name, region_name, completed_trips, and gross_bookings
- Include completed trips requested from
2025-01-01 through 2025-01-31
- Sort by
gross_bookings descending, then city_name ascending