Zoom provides different features based on whether a user has a Free or Pro account. One key metric for the product team is understanding how meeting lengths differ between these two tiers.
Write an SQL query to find the average meeting duration in minutes for each account type.
| user_id(INTEGER) | account_type(VARCHAR) |
|---|---|
| 1 | Free |
| 2 | Pro |
| 3 | Pro |
| 4 | Free |
| 5 | Pro |
| meeting_id(INTEGER) | host_id(INTEGER) | start_time(TIMESTAMP) | end_time(TIMESTAMP) |
|---|---|---|---|
| 101 | 1 | 2026-02-01 10:00:00 | 2026-02-01 10:30:00 |
| 102 | 2 | 2026-02-01 11:00:00 | 2026-02-01 12:30:00 |
| 103 | 3 | 2026-02-01 14:00:00 | 2026-02-01 14:45:00 |
| 104 | 1 | 2026-02-02 09:00:00 | 2026-02-02 09:40:00 |
| 105 | 5 | 2026-02-02 10:00:00 | 2026-02-02 11:15:00 |
| 106 | 4 | 2026-02-02 13:00:00 | 2026-02-02 13:20:00 |
| account_type(VARCHAR) | average_duration_minutes(DECIMAL) |
|---|---|
| Pro | 70 |
| Free | 30 |