📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the difference between a primary key and a foreign key?

A. A foreign key identifies rows in its own table
B. A primary key references another table
C. They are the same key in different tables
D. A primary key identifies rows in its own table; a foreign key references rows in another table ✅

Correct Answer: D. A primary key identifies rows in its own table; a foreign key references rows in another table

Explanation

Primary keys provide identity within a table, while foreign keys provide links between tables.