Consumer Lending Analyst Path · Mission 9 of 30Easy

30+ delinquent loan count

Filter on a status enum with IN, count rows

The Brief

Tony CostaLoan Servicing Leadconsumer-lending

Quick number for the morning standup. How many loans are currently 30+ DPD — that's `current_status` IN ('30dpd', '60dpd', '90dpd')? Single scalar, alias `delinquent_count`. Don't include charge-offs — those aren't ours anymore, recovery owns them.

You'll practice

WHERECOUNTStatus 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

Single-table count with a WHERE filter on `current_status`. The schema or a quick `SELECT DISTINCT current_status` will tell you what tier values the field uses.

Hint 2

Charge-offs and paid-offs are terminal states — recovery owns charge-offs, paid-offs are off the books. The morning standup tracks loans servicing still owns and can still cure, which is the active-delinquency tiers only.

Hint 3

Single scalar output. `IN` reads cleaner than chained `OR` for a discrete-value match. Alias the count for the report header.