What is difference between primary key and foreign key in database?
Hi there,
Primary key is the set of attributes that uniquely identifies the records of the table. If we apply primary key in a column then we cannot add duplicate value to it.
Foreign key is a non key attributes those whose values are derived from primary key of some other table.
Hope it helps!
For further queries do, let me know!