![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLXq5Sb0mqYO91GL1B4pCdM3ooliIesE92e2s7llsD-7pNYj1Jy3CVoH55AdtT_Yw-C0kxFmuFinvPk8_FcENdQlAASjEaGOzZHhKxCTz2svaqdVBPb2Tzf_kUGMxUYmjebdUY-hvjw6V3/s1600/home_wallpaper_0-001.jpg)
A key is a field that you use to sort data.
Following are the different types of keys.
1.
Candidate key.
A candidate key is a super key that contains no extra attribute.
2.
Primary Key.
A primary key is a candidate key
that is selected by the database designer to identify tuples uniquely in a
relation.
3.
Alternate Key.
The candidate keys that are not
selected as primary key are known as alternate keys.
4.
Foreign key
A foreign key is an attribute or
set of attributes in a relation whose values match a primary key in another
relation.
No comments:
Post a Comment