answersLogoWhite

0

* Alternate key - An alternate key is any candidate key which is not selected to be the primary key

* Candidate key - A candidate key is a field or combination of fields that can act as a primary key field for that table to uniquely identify each record in that table.

For Eg:

The table:

Emloyee(Name,Address,Ssn,Employee_Idprimary_key,Phone_ext)

In the above example Ssn no. and employee identity are ccandidate keys.

* Compound key - compound key (also called a composite key or concatenated key) is a key that consists of 2 or more attributes.

* Primary key - a primary key is a value that can be used to identify a unique row in a table. Attributes are associated with it. Examples of primary keys are Social Security numbers (associated to a specific person) or ISBNs (associated to a specific book).

In the relational model of data, a primary key is a candidate key chosen as the main method of uniquely identifying a tuple in a relation.

For Eg:

Emloyee(Name,Address,Ssn,Employee_Idprimary_key,Phone_ext)

* Superkey - A superkey is defined in the relational model as a set of attributes of a relation variable (relvar) for which it holds that in all relations assigned to that variable there are no two distinct tuples (rows) that have the same values for the attributes in this set. Equivalently a superkey can also be defined as a set of attributes of a relvar upon which all attributes of the relvar are functionally dependent.

For Eg:

Emloyee(Name,Address,Ssn,Employee_Idprimary_key,Phone_ext)

<Ssn,Name,Address>

<Ssn,Name>

<Ssn>

All the above are super keys.

* Foreign key - a foreign key (FK) is a field or group of fields in a database record that points to a key field or group of fields forming a key of another database record in some (usually different) table. Usually a foreign key in one table refers to the primary key (PK) of another table. This way references can be made to link information together and it is an essential part of database normalization.

For Eg:

For a Student....

School(Name,Address,Phone,School_Reg_noprimary_key

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What are some of DBMS Types?

1. Following are the different types of dbmsMySQLMicrosoft SQL ServerMS AccessFoxproSAPdBASETibero 6


How many super keys are possible in DBMS having m attributes?

In dbms with m attributes 2^m-1 keys are possible. BY-ROHIT


What are different types of keys not found on a keyboard?

The Florida Keys


What types of keys have the same tonic but different key signatures?

Keys that have the same tonic but different key signatures are called relative keys.


What are different types of hashing techniques are there in DBMS?

there are 2 types of hashing techniques 1- Static hashing 2-Dynamic hashing


What are three types of dbms?

Hierarchical DBMSNetwork DBMSRelational DBMS


Can you make brass keys in RuneScape?

No key can be made in RuneScape. The different types of keys are obtained in different places, but never made by players.


What are Different types of file organisation in DBMS?

Heap file organization Sequential File Organization Hashing File organization


What types of keys have same tonic but different key signatures?

Parallel


Hos is DBMS different from a Database?

DBMS is database management. Database is where the information is stored.


Explain the types of dbms users?

There are four types of DBMS users,Naive UsersOnline UsersApplication Program UsersDatabase AdministratorNote: The description of above points is currently not available.


What are the types of dbms attributes?

Types of Attributes in Dbms areKey or non key attributesRequired or optional AttributesSimple or composite AttributesSingle-valued and multi-valued AttributesStored, Coded or derived Attributes