RevOps & Sales Analytics Path · Mission 10 of 30Easy

Leads with no account match

IS NULL filter — the unconverted-leads worklist pattern

The Brief

Adrian SouzaMarketing Ops Leadmarketing-ops

Give me every lead in `revops_leads` where `account_id IS NULL` — these are the ones we haven't converted to an account yet, so they're still at the top of the funnel. Return `lead_id`, `full_name`, and `source`. Order by created_date ascending so the oldest unconverted leads are first — those are the SDR follow-up targets.

You'll practice

LEFT JOINIS NULL

Tables & columns available

revops_leadsdim8 columns
ColumnTypeKey
lead_idINTPK
full_nameTEXT
emailTEXT
company_nameTEXT
sourceTEXT
statusTEXT
account_idINTFK → revops_accounts
created_dateTEXT

Hints (3)

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

Hint 1

`WHERE account_id IS NULL` — critical that you use `IS NULL`, not `= NULL`. Equality comparisons against NULL always yield NULL (neither true nor false), so `WHERE x = NULL` returns zero rows.

Hint 2

Order by `created_date ASC`. Oldest unconverted leads at the top.

Hint 3

You should see 6 leads. The other 4 leads in the seed have already been converted — they have a non-null account_id.