About the “Unverified FinTech Accounts Missing Government ID” SQL Problem
Business Scenario
Risk and fraud compliance teams need to isolate customer accounts registered over 14 days ago that still have zero approved government identification documents uploaded.
Expected Output & Criteria
Unverified user accounts registered >= 14 days without approved KYC documents.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMCREATE TABLE app_users (
user_id INT PRIMARY KEY,
user_email VARCHAR(100) NOT NULL,
account_tier VARCHAR(20) NOT NULL,
registered_days_ago INT NOT NULL
);
CREATE TABLE kyc_documents (
doc_id VARCHAR(20) PRIMARY KEY,
user_id INT REFERENCES app_users(user_id),
doc_type VARCHAR(30) NOT NULL,
doc_status VARCHAR(20) NOT NULL
);Target SQL Clauses & Operators
Want more Joins practice?
Explore the full syllabus of 16 exercises and syntax guides.