The Relational Database Keys
Mrs. Sharmila K. Karpe
(shrmlkrp@gmail.com)
Assistant Professor, Dept of Information Technology
Walchand Institute of Technology, Solapur
(www.witsolapur.org)
1
What is Key?
Walchand Institute of Technology, Solapur 2
Keys are fields in a table which participate in below activities in
RDBMS systems:
•To create relationships between two tables.
•To maintain uniqueness in a table.
•To keep consistent and valid data in database.
•Might help in fast data retrieval by facilitating indexes on
column(s).
Primary Key
.
Walchand Institute of Technology, Solapur
3
Primary key is a candidate key of the
table selected to identify each
record uniquely in table. Primary
key does not allow null value in the
column and keeps unique values
throughout the column.
example
Employee_Id is a primary key of Employee table.
References
Walchand Institute of Technology, Solapur
4
Material references:
•Database System Concepts Avi Silberschatz Henry F. Korth S. Sudarshan
•http://www.sqlrelease.com/sql-server-tutorial/types-of-keys

Ppt resource creation 1

  • 1.
    The Relational DatabaseKeys Mrs. Sharmila K. Karpe (shrmlkrp@gmail.com) Assistant Professor, Dept of Information Technology Walchand Institute of Technology, Solapur (www.witsolapur.org) 1
  • 2.
    What is Key? WalchandInstitute of Technology, Solapur 2 Keys are fields in a table which participate in below activities in RDBMS systems: •To create relationships between two tables. •To maintain uniqueness in a table. •To keep consistent and valid data in database. •Might help in fast data retrieval by facilitating indexes on column(s).
  • 3.
    Primary Key . Walchand Instituteof Technology, Solapur 3 Primary key is a candidate key of the table selected to identify each record uniquely in table. Primary key does not allow null value in the column and keeps unique values throughout the column. example Employee_Id is a primary key of Employee table.
  • 4.
    References Walchand Institute ofTechnology, Solapur 4 Material references: •Database System Concepts Avi Silberschatz Henry F. Korth S. Sudarshan •http://www.sqlrelease.com/sql-server-tutorial/types-of-keys