Consumer Lending Analyst Path · Mission 3 of 30Starter

Funded originations this quarter

COUNT with a date-range WHERE filter

The Brief

Jennifer WhitmanMortgage Sales Directorconsumer-lending

Quick number for the LO call this afternoon. How many loans did we fund in Q1 2026 — that's `funded_date` between 2026-01-01 and 2026-03-31 inclusive? One number, alias it `q1_originations`.

You'll practice

COUNTWHEREDate filter

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

Hints (3)

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

Hint 1

Aggregate over the originations rows whose funded_date falls inside the quarter — you want the count, not the list.

Hint 2

Two equivalent shapes for a date-window predicate: a BETWEEN, or paired boundary comparisons. Both inclusive on both ends. Production code sometimes prefers an exclusive upper boundary to avoid month-end timestamp drift, but for a date-only column either reads the same.

Hint 3

Single scalar output. Naming the count via an alias is what gives the report header a clean column to bind to.