Define the term candidate key and foreign key with respect to database.

Question
in progress 0
Studies Aman 5 years 1 Answer 161 views Bronze 0

Answer ( 1 )

  1. A candidate key is a column, or set of columns, in a table that can uniquely identify any database record without referring to any other data. Each table may have one or more candidate keys, but one candidate key is unique, and it is called the primary key.
    A foreign key is a column or group of columns in a 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.

Leave an answer

Browse

Captcha Click on image to update the captcha .

About AmanBronze