How would you manipulate and query a dataset in Python or R to prepare it for analysis?
For this PostgreSQL exercise, express the preparation as a SQL query using the provided tables. Return one analysis-ready row per regular-season game from January 1 through March 31, 2025.
Output
- Columns:
game_date, opponent, venue_name, attendance, tickets_sold, ticket_revenue, avg_ticket_price, and occupancy_status
- Include games without matching venue or ticket records, using zero or
NULL where appropriate
- Sort by
game_date ascending