Explain what a clustered index is and when it helps query performance.
Use the provided PostgreSQL tables to write the representative date-range query discussed in your explanation. Address PostgreSQL's distinction between an index and one-time table clustering.
customer_name, order_id, order_date, and amount.order_date ascending, then order_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| customer_id | INT | Customer associated with the order |
| order_date | DATE | Date the order was placed |
| amount | NUMERIC(10,2) | Order amount |