Consumer Lending Analyst Path · Mission 5 of 30Starter

Net new mortgages last 30 days

Join origination to product, filter to mortgage subcategory, count last-30-days fundings

The Brief

Marcus HollandChief Credit Officerconsumer-lending

Board prep number. How many mortgage loans funded in the last 30 days — that's `funded_date` from 2026-03-30 through 2026-04-29 inclusive — for products in the Mortgage subcategory only? Single scalar, alias it `mortgages_30d`. Just the funding count, no balance sum.

You'll practice

WHEREDate filterSet arithmetic

Tables & columns available

lending_originationsfact17 columns
ColumnTypeKey
origination_idINTPK
app_idINTFK → lending_applications
account_idINTFK → retail_accounts
funded_dateTEXT
funded_amountREAL
term_monthsINT
interest_rateREAL
rate_typeTEXT
arm_reset_dateTEXT
fico_at_origINT
dti_at_origREAL
ltv_at_origREAL
property_valueREAL
lo_nameTEXT
channelTEXT
current_statusTEXT
closed_dateTEXT
lending_applicationsfact18 columns
ColumnTypeKey
app_idINTPK
customer_idINTFK → retail_customers
product_idINTFK → retail_products
application_dateTEXT
requested_amountREAL
requested_termINT
loan_purposeTEXT
action_takenINT
denial_reason_1INT
aus_recommendationTEXT
rate_spreadREAL
lien_statusINT
occupancyINT
ethnicityINT
raceINT
sexINT
age_bucketTEXT
property_tractTEXTFK → lending_geography
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

Two filters compose: a date window on funded_date, and a product-subcategory restriction. Subcategory lives on `retail_products`, not on the originations row, so a JOIN is required to reach it.

Hint 2

Re-run M2's product taxonomy if you need to remind yourself which subcategory label the briefing wants. Filtering on the subcategory string is more durable than hardcoding individual product codes — if a new mortgage product launches, the report still works.

Hint 3

Single scalar output, aliased so the board deck binds cleanly. Inclusive on both ends of the date window; the board number includes today's fundings.