โ† Cognizant questions

Primary key datatype: varchar vs number for serial numbers

Filed under Cognizant

The question

If a serial number is used as a primary key in a relational database, discuss whether it should be stored as a varchar or a numeric datatype and the implications of each.

No write-up yet. Related questions below have one.

Related Cognizant questions

Collected from public candidate posts and coding forums. Updated Nov 2026.