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 |