Your question is 7-Day Rolling Average Exports. Start with the requirements and the one table 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.
Adobe Acrobat product analytics wants to smooth daily export volume so the team can spot trends without day-to-day noise. Write a SQL query to calculate the 7-day rolling average of document exports per user.
| Column | Type | Description |
|---|---|---|
| export_idPK | INT | Primary key for each export event |
| user_id | INT | Adobe Acrobat user identifier |
| export_date | DATE | Date the document was exported |
| document_id | INT | Identifier of the exported document |
| export_format | VARCHAR(20) | Export format such as PDF or DOCX |