Explain the Difference Between a Primary Key and a Foreign Key.



Explain the Difference Between a Primary Key and a Foreign Key...

Answer / hr@tgksolutions.com

Each record in a table is uniquely identified by its primary key, which also guarantees data integrity. There can only be one primary key per table, which guarantees that every record is distinct.
Conversely, a foreign key refers to the primary key in the associated table to establish a connection between two tables. By guaranteeing the validity of the link between the tables and the consistency of the data, this relationship aids in preserving referential integrity between them.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Database Management Interview Questions

Explain primary key and composite key.

0 Answers  


What is the use of GRANT option in IMP command ?

1 Answers  


What do you understand by index hunting?

0 Answers  


What is Data Redundancy and Consistency ?

0 Answers   MCN Solutions,


Define entity, entity type, and entity set.

0 Answers  


Explain the importance of database partitioning.

0 Answers  


Is it possible to Disable the Parameter form while running the report ?

1 Answers  


What is Database Management System?

0 Answers   Atos Origin,


Describe why operational and informational systems are separate.

0 Answers  


Do we consider null values the same as that of blank space or zero?

0 Answers  


What SYSTEM VARIABLE is used to refer DATABASE TIME ?

1 Answers  


Have you written applications to retrieve stored images in a table?

0 Answers   Tech Mahindra,


Categories