About the “General Ledger Bank Reconciliation with FULL OUTER JOIN” SQL Problem
Business Scenario
Accounting must reconcile internal ledger records against external bank statements. Any transaction appearing on only one side must be flagged as either 'Missing in Bank' or 'Missing in Ledger'.
Expected Output & Criteria
Reconciliation table classifying each transaction as Matched, Missing in Bank, or Missing in Ledger.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE internal_ledger (
entry_id INT PRIMARY KEY,
transaction_ref VARCHAR(30) UNIQUE NOT NULL,
ledger_amount NUMERIC(10, 2) NOT NULL
);
CREATE TABLE bank_statement_lines (
line_id INT PRIMARY KEY,
transaction_ref VARCHAR(30) UNIQUE NOT NULL,
statement_amount NUMERIC(10, 2) NOT NULL
);Target SQL Clauses & Operators
Want more Joins practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.