Given a table of user activity logs, write a query to identify users who had consecutive active days of website building on GoDaddy.
Filter activity to website_building events and ignore rows with a NULL user_id or activity_type. Include every streak of at least three consecutive calendar days.
user_id, streak_start, streak_end, and consecutive_daysuser_id, then streak_start ascending| Column | Type | Description |
|---|---|---|
| log_idPK | INTEGER | Unique activity log identifier |
| user_id | INTEGER | GoDaddy user identifier |
| activity_date | DATE | Calendar date of the activity |
| activity_type | VARCHAR(50) | Type of user activity |