Question: what is the difference between primary key and foreign key explain with example?
Answer: It uniquely identifies a record in the relational database table. It refers to the field in a table which is the primary key of another table. Only one primary key is allowed in a table. Whereas more than one foreign key are allowed in a table.