Quick Commerce Analytics Path · Mission 2 of 25Easy

Shopper roster basics

Read a dimension table and apply a simple WHERE filter + LIMIT. dim_shoppers is the gig courier roster; practice previewing a subset of columns for active shoppers only.

Back to Quick Commerce Analytics

The Brief

Priya NairShopper Operations Leadshopper-ops

I'm onboarding a new dispatcher and want them to eyeball the active roster. Give me the first 20 active shoppers: shopper_id, shopper_name, vehicle_type, home_zone. Only status = 'active'. ORDER BY shopper_id ASC, LIMIT 20.

You'll practice

SELECTLIMITWHERE

Tables & columns available

dim_shoppersdim8 columns
ColumnTypeKey
shopper_idINTPK
shopper_nameTEXT
home_zoneTEXT
vehicle_typeTEXT
signup_dateTEXT
last_active_dateTEXT
statusTEXT
ratingREAL

Hints (3)

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

Hint 1

dim_shoppers is the only table you need here.

Hint 2

Filter with WHERE status = 'active', then select the four columns asked for.

Hint 3

ORDER BY shopper_id ASC and cap the output with LIMIT 20.