Given a table of Pluralsight user login events, write a SQL query to identify consecutive days of platform activity for active learners. Treat multiple login events on the same calendar day as one activity day. Return only streaks containing at least two consecutive calendar days.
learner_id, streak_start, streak_end, and consecutive_dayslearner_id, then streak_start| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique identifier for the login event |
| learner_id | INT | Identifier of the learner associated with the event |
| login_at | TIMESTAMP | Timestamp when the learner logged in |