Reconcile bank and ledger with a full outer join (studio)
Match bank lines to ledger entries by Ref and flag what's only in the bank, only in the ledger, or in both.
- Level
- advanced
- Time
- ~14 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Use a full outer join and merge the key columns of both sides into one.
The scenario, sample data, step list, hints and solution open with Pro. Grading checks your query against hidden data as well as the visible sample, so a query that only fits the sample doesn't pass.
Input
- Bank (table)
- Ref: text
- Amount: number
- Ledger (table)
- Ref: text
- Amount: number
Expected output columns
Ref (text), Bank Amount (number (some rows null)), Ledger Amount (number (some rows null)), Status (text)