Given a table of customer repayments, write a query to identify users who have missed consecutive monthly installments for Navi's lending portfolio. Treat repayment records as monthly installments and return every streak containing at least two consecutive missed months.
user_id, missed_start_month, missed_end_month, and missed_monthsuser_id, then missed_start_month ascending| Column | Type | Description |
|---|---|---|
| repayment_idPK | INT | Unique repayment record identifier |
| user_id | VARCHAR(20) | Navi lending customer identifier |
| installment_month | DATE | Scheduled installment date |
| repayment_status | VARCHAR(20) | Repayment outcome, such as PAID or MISSED |
| amount_due | NUMERIC(12,2) | Scheduled installment amount |