Santa Clara Family Health wants to identify providers with more than $50,000 in billed claims during the latest completed fiscal quarter. Write a SQL query that returns each qualifying provider and their total billed amount.
provider_id, provider_name, and total_billed.total_billed descending, then provider_id ascending.| Column | Type | Description |
|---|---|---|
| provider_idPK | INT | Unique provider identifier |
| provider_name | VARCHAR(100) | Provider or facility name |
| Column | Type | Description |
|---|---|---|
| claim_idPK | INT | Unique claim identifier |
| provider_id | INT | Provider associated with the claim |
| service_date | DATE | Date services were provided |
| billed_amount | NUMERIC(12,2) | Amount billed on the claim |
| Column | Type | Description |
|---|---|---|
| quarter_idPK | INT | Unique fiscal quarter identifier |
| quarter_name | VARCHAR(20) | Fiscal quarter label |
| quarter_start | DATE | First date of the fiscal quarter |
| start_date | DATE | Date boundary used for claim matching |
| end_date | DATE | Last date of the fiscal quarter |
| quarter_end | DATE | Date used to determine whether the quarter is complete |