ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What are the keys in RDBMS..? and when are they used..?

user-image
تم إضافة السؤال من قبل Abdul Khader Shaik , IT & Ops Manager , TheSmartlabs
تاريخ النشر: 2018/01/27
Hafiz Eltrefee
من قبل Hafiz Eltrefee , Lecturer , IPA

There are many kind of keys in Relational database it used for identifying unique rows from table and

establish relationship between tables

types of keys in dbms

Primary Key – A primary is a column or set of columns in a table that uniquely identifies tuples (rows) in that table.

Super Key – A super key is a set of one of more columns (attributes) to uniquely identify rows in a table.

 

Candidate Key – A super key with no redundant attribute is known as candidate key

 

Alternate Key – Out of all candidate keys, only one gets selected as primary key, remaining keys are known as alternate or secondary keys.

 

Composite Key – A key that consists of more than one attribute to uniquely identify rows (also known as records & tuples) in a table is called composite key.

 

Foreign Key – Foreign keys are the columns of a table that points to the primary key of another table. They act as a cross-reference between tables.   

المزيد من الأسئلة المماثلة