Your question is Find Consecutive Login Activity. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Ameriprise wants to identify sustained engagement with its client digital experience. Given client login events, write a PostgreSQL query that finds each client's consecutive calendar-day login streaks.
| Column | Type | Description |
|---|---|---|
| client_idPK | INT | Unique Ameriprise client identifier |
| client_name | VARCHAR(100) | Client display name |
| Column | Type | Description |
|---|---|---|
| login_idPK | INT | Unique login event identifier |
| client_id | INT | Client associated with the login |
| login_date | DATE | Calendar date of client activity |