Procurement & Sourcing Analytics · Mission 7 of 30Easy

Supplier PO volume

GROUP BY with COUNT

The Brief

Dario SinghSourcing Managerprocurement-ops

How many POs has each supplier received? Show supplier_name and po_count, sorted descending.

You'll practice

GROUP BYORDER BYCOUNT

Tables & columns available

fact_purchase_ordersfact15 columns
ColumnTypeKey
po_idINTPK
supplier_idINTFK → dim_suppliers
category_idINTFK → dim_categories
contract_idINTFK → dim_contracts
req_dateTEXT
po_dateTEXT
ack_dateTEXT
asn_dateTEXT
gr_dateTEXT
invoice_dateTEXT
qty_orderedINT
qty_receivedINT
unit_priceREAL
contracted_priceREAL
statusTEXT
dim_suppliersdim8 columns
ColumnTypeKey
supplier_idINTPK
supplier_nameTEXT
countryTEXT
tierINT
category_focusTEXT
diversity_certifiedINT
payment_terms_daysINT
is_preferredINT

Hints (3)

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

Hint 1

JOIN POs to suppliers.

Hint 2

GROUP BY supplier_name, COUNT(*).

Hint 3

ORDER BY po_count DESC.