This project validates PAN numbers using PostgreSQL functions, regex, and views.
- Cleans raw data (handles nulls, duplicates, spaces, casing)
- Validates PAN format (regex + custom functions)
- Categorizes into Valid and Invalid
- Generates summary report with counts
- PostgreSQL 17
- SQL (PL/pgSQL functions, regex, windowing)
- Create database in PostgreSQL
- Run
pan_validation.sql - Import dataset into
stg_tbl_pan_validation - Query the view
vw_categorized_pan_numbers