Write a query to calculate the rolling 7-day average of meeting duration per user account for Zoom Video Communications.
Use completed meetings with non-null durations. The rolling period includes the current meeting date and the six preceding calendar days.
account_id, account_name, meeting_date, and rolling_avg_duration.account_name, then meeting_date.| Column | Type | Description |
|---|---|---|
| account_idPK | INT | Unique Zoom customer account identifier |
| account_name | VARCHAR(100) | Display name of the Zoom customer account |
| Column | Type | Description |
|---|---|---|
| meeting_idPK | INT | Unique meeting identifier |
| account_id | INT | Account that hosted the meeting |
| meeting_date | DATE | Calendar date on which the meeting occurred |
| duration_minutes | INT | Meeting duration in minutes |
| status | VARCHAR(20) | Meeting completion status |