Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

IN THE DATABASE THERE ARE ALOT OF KEYS WHAT ARE THEY AND WHAT THEY DO?

user-image
Question added by Deleted user
Date Posted: 2014/08/25

Alternate key

Candidate key

Compound key

Primary key

Super key

Foreign key

Gayasuddin Mohammed
by Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

Basically they are the constraints you can attach on table level as well as field level of the table.

Unique key constraint is added to any field means the field should contain only unique value, it can allow users to insert the same value again for that field in another record.

Not Null constraint, if it is added to the field in table, than you should for sure had to provide value for that field, otherwise it throws an error being a non null field

 

Primary key is nothing but unique and not null, combination of above two. It is the main key one rdbms table should have for the performance of data retrieval or access for indexing purpose., but not must for every table.

 

foregin key- it is a relational key between two different tables for the purpose of normalisation to avoid redundancy of data.

etc..

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.