Question: What is the difference between PRIMARY KEY and FOREIGN KEY in a database? Explain with an example.

What is the difference between PRIMARY KEY and FOREIGN KEY in a database? Explain with an example.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer PRIMARY KEY A PRIMARY KEY uniquely identifies each record in a table It c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!