Consumer Lending Analyst Path · Mission 23 of 30Expert

HMDA LAR row reconstruction

Multi-table JOIN across application + geography + customer dimensions, with derived universal_loan_id and rounded amount per FFIEC LAR spec

The Brief

Rashida OkonkwoFair Lending Compliance Officerconsumer-lending

Mock LAR row reconstruction — the format I need to hand to the FFIEC submission tool. For the first 20 applications by application_date, build a row with these 14 columns: `universal_loan_id` (concat of `app_id`, application_date, tract_id with hyphens), `application_date`, `action_taken`, `loan_purpose`, `loan_amount_rounded` (requested_amount rounded to nearest thousand, integer), `borrower_state`, `property_county`, `property_state`, `ethnicity`, `race`, `sex`, `age_bucket`, `lmi_flag`, `minority_pct` (rounded 2 decimals). Sort by application_date ascending, then app_id ascending. LIMIT 20.

You'll practice

Multi-table JOINString construction

Tables & columns available

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
lending_geographydim6 columns
ColumnTypeKey
tract_idTEXTPK
msa_codeTEXT
countyTEXT
stateTEXT
lmi_flagINT
minority_pctREAL
retail_customersdim13 columns
ColumnTypeKey
customer_idINTPK
household_idTEXT
first_nameTEXT
last_nameTEXT
date_of_birthTEXT
stateTEXT
segmentTEXT
fico_currentINT
estimated_incomeREAL
kyc_riskTEXT
acquisition_channelTEXT
onboarded_dateTEXT
statusTEXT

Hints (3)

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

Hint 1

Three-table JOIN — applications, customers (for borrower_state), geography (for property_state, county, lmi_flag, minority_pct). INNER JOIN on geography excludes apps without a property tract — non-mortgage products, which match HMDA scope.

Hint 2

Build `universal_loan_id` by string-concatenating three application-level fields with a separator character. Real HMDA ULIDs are 23-char hashes; here the analyst's job is to construct a unique-per-record string that the FFIEC submission tool accepts in that position.

Hint 3

`loan_amount_rounded` follows FFIEC's privacy rule — round to nearest $1,000 so exact balances can't be re-identified from the public LAR. Two-step formula: divide by 1000 and round to integer, then multiply back by 1000. Cast to int; the FFIEC schema rejects decimals. LIMIT 20 after the sort.