Northeastern University’s analytics team monitors engagement in the Northeastern Canvas LMS. Write a PostgreSQL query that calculates daily active users and their trailing seven-calendar-day average.
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Northeastern Canvas LMS user identifier |
| display_name | VARCHAR(100) | User's display name |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INT | Unique activity event identifier |
| user_id | INT | User associated with the activity event |
| activity_date | DATE | Calendar date on which the event occurred |
| is_active | BOOLEAN | Whether the event represents active platform use |