Demand Planning & Forecasting Analytics · Mission 2 of 30Starter

Location count

COUNT(*) on a dimension

The Brief

Lena ParkDemand Planning Managerdemand-planning

How many distinct locations in `dim_locations`? Single number, alias `location_count`.

You'll practice

COUNT

Tables & columns available

dim_locationsdim4 columns
ColumnTypeKey
location_idINTPK
location_nameTEXT
regionTEXT
dc_typeTEXT

Hints (3)

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

Hint 1

Aggregate over a single dim to return one number — the location dim is small.

Hint 2

Single column.

Hint 3

Alias.