Write a simple SQL query to extract sales data for the past quarter.
Use the sales table and interpret "past quarter" as the previous completed calendar quarter. Return individual sales records, excluding rows without a sale date.
sale_id, sale_date, restaurant_name, and sales_amountsale_date ascending, then sale_id ascending| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique identifier for the sale |
| sale_date | DATE | Date on which the sale occurred |
| restaurant_name | VARCHAR(100) | Restaurant associated with the sale |
| sales_amount | NUMERIC(10,2) | Sales amount in dollars |