In focus

    About foreign key

    A Foreign key is a column or group of columns which is treated as primary key in the different table and it is used in relational database table that provides a link between data in two tables. It acts as a cross reference between tables because it references the primary key of another table, thereby establishing a link between them. A primary key can be targeted by multiple Foreign key from other tables. But a primary key does not necessarily have to be the target of any foreign keys.