How is FOREIGN KEY related to PRIMARY KEY command?

In RDBMS, to ensure that two tables are related with each other using Referential Intigrity, Primary and Foreign key relationship is used.

When two tables are related using common field, the related field in primary table is declared as Primary key and hence the same related field in secondary (related) table is taken as Foreign key.

error: Content is protected !!