¿ Qué es una reserva?
For this SQL exercise, interpret a claim reserve as the remaining estimated cost of an open or reopened claim after settled payments. Write a query that calculates this amount for each eligible claim.
claim_id, claim_number, estimated_ultimate_cost, paid_amount, and reserve_amountreserve_amount descending, then claim_id ascending| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| claim_number | VARCHAR(20) | Business claim reference |
| status | VARCHAR(20) | Current claim status |
| estimated_ultimate_cost | DECIMAL(12,2) | Estimated total cost of the claim |
| Column | Type | Description |
|---|---|---|
| payment_idPK | INT | Unique payment identifier |
| claim_id | INT | Referenced claim |
| payment_status | VARCHAR(20) | Payment processing status |
| payment_amount | DECIMAL(12,2) | Payment amount |