Consumer Lending Analyst Path · Mission 2 of 30Starter

Loan product taxonomy

DISTINCT subcategories with a JOIN to a dim table

The Brief

Jennifer WhitmanMortgage Sales Directorconsumer-lending

I'm prepping the LO comp grid and need the loan product list off `retail_products`. Pull every product where `category = 'Loan'` — three columns: `product_code`, `product_name`, `subcategory`. Sort by `subcategory` then `product_code`.

You'll practice

WHEREORDER BY

Tables & columns available

retail_productsdim6 columns
ColumnTypeKey
product_idINTPK
product_codeTEXT
product_nameTEXT
categoryTEXT
subcategoryTEXT
default_aprREAL

Hints (3)

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

Hint 1

`retail_products` mixes deposits, cards, and loans in one dim. You want the loan rows only — restrict the population on the category column before anything else.

Hint 2

Three projected columns in the order the briefing dictates. The two-key sort (subcategory first, then code) is what gives ties between products in the same subcategory a deterministic order.

Hint 3

Everything you need is on `retail_products` — no JOIN involved. Filter, project, sort. That's the whole query.