NCR Atleos uses regional sales data to review performance across its ATM and payment technology business. Write a PostgreSQL query to calculate the average sale amount for each region.
region and calculate the average of sale_amount using AVG.NULL region when present, and sort alphabetically with the NULL region last.| Column | Type | Description |
|---|---|---|
| sale_idPK | INTEGER | Unique sale identifier |
| region | VARCHAR(50) | Sales region, or NULL when not assigned |
| sale_amount | NUMERIC(12,2) | Sale amount |
| sale_date | DATE | Date of the sale |