Business Context
Amplify Marketing Agency needs a campaign performance view that compares the number of customers assigned to each campaign with the number who converted.
Task
Write a PostgreSQL query that joins customers, campaigns, and conversions to calculate conversion performance for every campaign.
Requirements
- Return every campaign, including campaigns with no assigned customers or conversions.
- Show assigned customer count, distinct converted customer count, and conversion rate as a percentage rounded to two decimals.
- Count each customer at most once per campaign, even if the customer has multiple conversion events.
- Order results by
campaign_id ascending.