Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
Clean and Reconcile Bank Exports
00:00
5 left

Clean and Reconcile Bank Exports

HardSQL · PostgreSQL

Problem

Given a raw export of transactional data with mismatched formatting, use formulas to clean, align, and reconcile the dataset against a bank settlement report at Rippling.

Write a PostgreSQL query using raw_transactions and bank_settlements. Normalize references, safely parse dates and amounts, match records, and classify reconciliation differences.

Output

  1. One row per matched or unmatched record pair, with transaction ID, settlement ID, normalized reference, cleaned transaction date, cleaned amount, settlement date, settlement amount, and reconciliation status.
  2. Include unmatched records from either source.
  3. Order by transaction ID, followed by unmatched settlements in numeric settlement-ID order.

Schema

raw_transactions
ColumnTypeDescription
raw_transaction_idPKINTIdentifier from the raw transaction export
raw_dateVARCHAR(20)Transaction date in inconsistent text formats
raw_amountVARCHAR(30)Transaction amount containing currency symbols or inconsistent formatting
raw_referenceVARCHAR(40)Raw transaction reference
bank_settlements
ColumnTypeDescription
settlement_idPKVARCHAR(20)Bank settlement identifier
settlement_dateDATEDate reported by the bank
settlement_amountNUMERIC(14,2)Settled monetary amount
referenceVARCHAR(40)Reference from the bank settlement report
Tablesraw_transactionsbank_settlements
Interviewer

Your question is Clean and Reconcile Bank Exports. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.