Your question is SQL Join and Category Aggregation. 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.
Skydio uses flight-event data to monitor activity across its drone portfolio. Write a PostgreSQL query that joins drone models with their flight events and summarizes completed flight activity by category.
2025-01-01 through 2025-03-31, inclusive.| Column | Type | Description |
|---|---|---|
| model_idPK | INT | Unique drone model identifier |
| model_name | VARCHAR(100) | Skydio drone model name |
| category | VARCHAR(50) | Operational category for the model |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique flight event identifier |
| model_id | INT | Referenced drone model identifier |
| event_date | DATE | Date of the flight event |
| status | VARCHAR(20) | Flight event status |
| flight_minutes | INT | Recorded flight duration in minutes |