What basic SQL and Python questions can you answer confidently?
Answer this as a hands-on SQL exercise using the provided sales table. Calculate category-level sales results for the requested categories, ignoring rows with non-positive or NULL amounts.
category, total_sales, and average_sale.total_sales descending, then category ascending.| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique identifier for the sale |
| category | VARCHAR(50) | Sales category |
| amount | NUMERIC(12,2) | Sale amount |