Hitachi Energy wants a quick view of which products generate the most recorded sales. Use the product sales data to identify the five highest-selling products.
Write a PostgreSQL query that calculates total sales for each product and returns the top five products.
product_name is NULL because they cannot be attributed to a product.| Column | Type | Description |
|---|---|---|
| sale_idPK | INTEGER | Unique sale record identifier |
| product_name | VARCHAR(100) | Hitachi Energy product name |
| sales_amount | NUMERIC(12,2) | Recorded sales amount |