Artech wants to identify its strongest marketing channels based on recent completed revenue. Write a SQL query to find the channel or channels with the highest completed revenue during the last fully completed calendar quarter.
channel_name, total_revenue, and revenue_rankchannel_name| Column | Type | Description |
|---|---|---|
| channel_idPK | INT | Unique marketing channel identifier |
| channel_name | VARCHAR(100) | Artech marketing channel name |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique revenue transaction identifier |
| channel_id | INT | Marketing channel associated with the transaction |
| transaction_date | DATE | Date the transaction was recorded |
| revenue | DECIMAL(12,2) | Revenue attributed to the transaction |
| transaction_status | VARCHAR(20) | Transaction state, such as completed or refunded |