StreamLine wants a simple daily engagement report from its app event log. Write a SQL query to calculate user engagement metrics for a specific date range using only the user_events table.
event_date for dates between 2024-03-01 and 2024-03-05 inclusive.total_events: total number of event rowsactive_users: count of distinct non-null user_id valuesevent_date ascending.| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique identifier for each event |
| user_id | INT | User who triggered the event; NULL for anonymous activity |
| event_type | VARCHAR(50) | Type of user event |
| event_date | DATE | Calendar date when the event occurred |
| device_type | VARCHAR(20) | Device used for the event |