employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

What is the difference between primary key and foreign key in databases?

Interview Answer

Anonymous

Sep 13, 2025

A primary key uniquely identifies each record in a table, while a foreign key establishes a relationship between two tables by referencing the primary key of another table.