Reported in a candidate post, Dec 2020
Difference between Primary key and Foreign key
Filed under Cognizant · Also reported at MakeMyTrip
The question
Explain the differences between a primary key and a foreign key in a database.
No write-up yet. Related questions below have one.
Related Cognizant questions
Collected from public candidate posts and coding forums. Updated Nov 2026.