How would you compute running totals for event counts?
Write a PostgreSQL query using discord_events and event_types. Ignore events with missing dates or event types that do not match a row in event_types.
event_name, event_date, event_count, and running_total.running_total must include all events for that type through the displayed date.event_name ascending, then event_date ascending.| Column | Type | Description |
|---|---|---|
| event_type_idPK | INT | Unique event type identifier |
| event_name | VARCHAR(100) | Descriptive name of the event type |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| event_type_id | INT | Referenced event type identifier |
| event_date | DATE | Calendar date on which the event occurred |