📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the best validation for a Pakistani CNIC field in a database?

A. A format check for 13 digits with the pattern 35202-1234567-1 ✅
B. A range check only
C. A uniqueness check only
D. No validation

Correct Answer: A. A format check for 13 digits with the pattern 35202-1234567-1

Explanation

A format check enforces the expected CNIC pattern before storage.