Tell me about a project where you used SQL, Python, and Excel to analyze marketing data.
For the SQL portion, write a query using the provided campaign and performance data. Calculate campaign-level marketing results for campaigns active during Q1 2025, handling campaigns with no performance records or zero spend.
campaign_id, campaign_name, channel, total_spend, total_revenue, total_conversions, conversion_rate, roi, and performance_band.total_revenue descending, then campaign_id ascending.start_date is before 2025-04-01 and end_date is null or on or after 2025-01-01.2025-01-01 and before 2025-04-01.total_spend, total_revenue, and total_conversions when no performance records exist.conversion_rate as conversions divided by clicks and roi as revenue minus spend divided by spend, rounding both to four decimals and returning null for zero denominators.No spend, campaigns with ROI at least 1 Excellent, campaigns with nonnegative ROI Good, and all others Needs review.| Column | Type | Description |
|---|---|---|
| campaign_idPK | INT | Unique campaign identifier |
| campaign_name | VARCHAR(150) | Campaign name |
| channel | VARCHAR(50) | Marketing channel |
| start_date | DATE | Campaign start date |
| end_date | DATE | Campaign end date, or NULL if ongoing |
| Column | Type | Description |
|---|---|---|
| performance_idPK | INT | Unique performance record identifier |
| campaign_id | INT | Referenced campaign |
| performance_date | DATE | Date of the performance record |
| spend | NUMERIC(12,2) | Marketing spend |
| revenue | NUMERIC(12,2) | Attributed revenue |
| clicks | INT | Recorded clicks |
| conversions | INT | Recorded conversions |