Write a database script for the given situation and explain how your SQL handles the required data conditions.
Use the supplied customers and orders tables. Treat an order as qualifying only when its status is shipped or delivered, its amount is greater than zero, and its order date falls in the first quarter of 2025. Preserve customers without qualifying orders, and display missing customer tiers as Unclassified.
customer_id, customer_name, customer_tier, qualifying_order_count, qualifying_revenue, and latest_qualifying_order_date.qualifying_revenue descending, then customer_id ascending.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer display name |
| customer_tier | VARCHAR(20) | Optional customer classification |
| 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 | DECIMAL(10,2) | Order amount |
| status | VARCHAR(20) | Current order status |