DeFiner wants a reliable daily signup trend for its analytics dashboard. Write a PostgreSQL query that reports daily signups during February 1 through February 10, 2025, including days with no qualifying signups.
signup event occurred on each calendar day.LAG.SUM ordered by date.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique DeFiner user identifier |
| created_at | TIMESTAMP | Account creation timestamp |
| channel_id | INT | Acquisition channel identifier |
| is_test | BOOLEAN | Whether the account is a test account |
| deleted_at | TIMESTAMP | Account deletion timestamp |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User associated with the event |
| event_type | VARCHAR(30) | Tracked event name |
| occurred_at | TIMESTAMP | Timestamp when the event occurred |
| Column | Type | Description |
|---|---|---|
| channel_idPK | INT | Unique acquisition channel identifier |
| channel_name | VARCHAR(100) | Human-readable acquisition channel |
| is_active | BOOLEAN | Whether the channel is currently active |