How would you answer SQL questions based on a schema provided to you?
Using the supplied schema, write a PostgreSQL query that summarizes January 2025 download activity for every user. Include only files created during January and downloads recorded during the same month.
display_name, files_with_downloads, and total_downloads.display_name.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| display_name | VARCHAR(100) | User display name |
| Column | Type | Description |
|---|---|---|
| file_idPK | INT | Unique file identifier |
| owner_id | INT | User who owns the file |
| file_name | VARCHAR(255) | File name |
| created_at | TIMESTAMP | File creation timestamp |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique file event identifier |
| file_id | INT | File associated with the event |
| event_type | VARCHAR(30) | Event type, such as download or view |
| occurred_at | TIMESTAMP | Timestamp when the event occurred |