What are the main SQL data operators
Using the provided campaign_metrics table, write a query that demonstrates common SQL data operations by returning metrics for active records only. Aggregate results by channel, sort by total spend, and return the three highest-spending channels.
channel, total_spend, and total_conversions.total_spend descending.| Column | Type | Description |
|---|---|---|
| metric_idPK | INT | Unique metric record identifier |
| channel | VARCHAR(50) | Channel associated with the metric record |
| status | VARCHAR(20) | Record status |
| spend | DECIMAL(10,2) | Spend attributed to the record |
| conversions | INT | Number of conversions attributed to the record |