Explain in brief Primary and Foreign Key.

870    Asked by HelenAtkinson in SQL Server , Asked on Dec 28, 2019
Answered by Preetam Shetty

Primary Key - A primary key is used to identify each record uniquely by enforcing Unique, NOT NULL constraint on the column.

Foreign Key - A foreign key is used to refer to the primary key of another table for its related data in order to help connect the tables by reference.



Your Answer

Interviews

Parent Categories