Write a SQL query to find the top 10% of customers by usage volume over the last 30 days at Infoblox.
Assume usage volume is stored in usage_events.usage_volume. Include customers with no qualifying usage as zero, and use the current date to define the 30-day period.
customer_id, customer_name, and total_usage.total_usage descending, then customer_id ascending for ties.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique Infoblox customer identifier |
| customer_name | VARCHAR(150) | Customer organization name |
| plan_name | VARCHAR(50) | Infoblox subscription plan |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique usage event identifier |
| customer_id | INT | Customer associated with the usage event |
| usage_date | DATE | Date on which usage occurred |
| usage_volume | DECIMAL(14,2) | Usage volume recorded for the event |