This Blog helps you to define your all problems regarding Computer Sc. Info Technology and Management. In this Blog you'll get your topic, solution for your questions as well as you get knowledge about new technologies and Corporate world updates also. Here you'll also get new ideas, techniques, various useful websites links and many more. Please also suggest me, what more i do for this Blog and for its enhancements. WELCOME suggestions & queries at amitesh_km@hotmail.com
Showing posts with label Primary key. Show all posts
Showing posts with label Primary key. Show all posts
Tuesday, December 06, 2016
Keys in DBMS
PRIMARY KEY:
- If there is a case two instances of an entity set
could have the same value for all its attributes. Hence to distinguish such
instances, we introduce the unique attribute and will identify an instance of
the entity set. Such unique entity identifier is referred to as a PRIMARY KEY.
SECONDARY KEY:
- It is an attribute or combinations of attributes
that classifies the entity set on a particular characteristic. It may not be a
candidate key. Eg. The entity set EMPLOYEE having the attribute department,
which identifies by its value all instances of EMPLOYEE who belongs to a given
department. More than one employee may belong to a department, so the
department attribute is not a candidate key for the entity set EMPLOYEE.
FOREIGN KEY :- A FOREIGN KEY is a field (or collection of fields) in one table, that refers to the PRIMARY KEY in another table. The table with the foreign key is called the child table, and the table with the primary key is called the referenced or parent table.
Subscribe to:
Posts (Atom)