Marketing Analytics Path · Mission 3 of 30Starter

How many emails did we send?

Use COUNT to aggregate rows in a fact table

Back to Marketing Analytics

The Brief

Sarah KimVP of Marketingmarketing-analytics

Quick one — total number of email sends on record? I need one number for the exec summary, ideally before the 12 standup. Just COUNT(*) on fact_sends is fine, don't overthink it.

You'll practice

COUNTAggregation

Tables & columns available

fact_sendsfact6 columns
ColumnTypeKey
send_idINTPK
campaign_idINTFK → dim_campaigns
customer_idINTFK → dim_customers
sent_atTEXT
openedINT
clickedINT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Each row in `fact_sends` represents one email sent. Use `COUNT(*)` to count all rows

Hint 2

Alias your result: `COUNT(*) AS total_sends` so the output column has a clear name

Hint 3

You should get a single row with one number. If you're getting multiple rows, you might have an accidental GROUP BY