English

Differentiate between Primary key and foreign key.

Advertisements
Advertisements

Question

Differentiate between Primary key and foreign key.

Distinguish Between
Advertisements

Solution

Primary Key: Primary key is a column or group of columns in a table that uniquely identify the records in the table.

Foreign Key: Foreign keys are the columns of the table which refer to the primary key of another table. A foreign key creates a relationship between two tables.

shaalaa.com
Keys in a Relational Database
  Is there an error in this question or solution?
Chapter 8: Database Concepts - Exercise [Page 126]

APPEARS IN

NCERT Computer Science [English] Class 12
Chapter 8 Database Concepts
Exercise | Q 3. b) | Page 126
NCERT Informatics Practices [English] Class 11
Chapter 7 Database Concepts
Exercise | Q 3. b) | Page 139
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×