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

13 Sept 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.