Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Excel Reconciliation With Data
00:00
5 left

Excel Reconciliation With Data

MediumSQL · PostgreSQL

Problem

How do you handle large datasets in Excel when performing weekly reconciliations at Adobe, and which functions do you rely on most?

For this SQL exercise, compare posted Adobe transactions with weekly reconciliation control totals. Include matched records, amount or count mismatches, and records present on only one side.

Output

  1. One row per account and week, with account_code, week_start, transaction_count, reconciled_count, transaction_total, reconciled_total, and reconciliation_status.
  2. Include all records from either source, order by account_code and week_start.

Schema

adobe_transactions
ColumnTypeDescription
transaction_idPKINTUnique transaction identifier
account_codeVARCHAR(20)Adobe account or ledger code
transaction_dateDATETransaction posting date
amountDECIMAL(12,2)Posted transaction amount
transaction_statusVARCHAR(20)Posting status
weekly_reconciliation
ColumnTypeDescription
reconciliation_idPKINTUnique reconciliation control row
account_codeVARCHAR(20)Adobe account or ledger code
week_startDATEMonday starting the reconciliation week
reconciled_amountDECIMAL(12,2)Expected weekly amount
reconciled_countINTExpected weekly transaction count
Tablesadobe_transactionsweekly_reconciliation
Interviewer

Your question is Excel Reconciliation With Data. 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
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.