Your question is Running 7-Day Average in SQL. 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.
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 |