Your question is Rolling Default Rates SQL. 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.
American Credit Acceptance wants to monitor default trends among recurring borrowers in its servicing portfolio. Write a PostgreSQL query that calculates monthly and rolling three-month default rates from borrower status records.
borrower_type is Recurring.| Column | Type | Description |
|---|---|---|
| borrower_idPK | INTEGER | Unique borrower identifier |
| borrower_name | VARCHAR(100) | Borrower name |
| borrower_type | VARCHAR(20) | Borrower classification |
| origination_date | DATE | Loan origination date |
| Column | Type | Description |
|---|---|---|
| status_idPK | INTEGER | Unique status record identifier |
| borrower_id | INTEGER | References borrowers.borrower_id |
| status_date | DATE | Date of the observed loan status |
| loan_status | VARCHAR(20) | Observed servicing status |