Professional Documents
Culture Documents
Unit - 3 Unit - 3 Data Base Managemant Data Base Managemant
Unit - 3 Unit - 3 Data Base Managemant Data Base Managemant
Unit - 3 Unit - 3 Data Base Managemant Data Base Managemant
a). Entity Integrity :: This rule ensures that every table must
have its own primary key.
b). Referential Integrity :: Referential integrity is based on
primary and foreign key. This rule defines that a foreign key
have a matching primary key.
Table:: Employee
Foreign key
Primary
Table:: Department key
pPhysical Level
S1
I2
I3 10
I6
20
20
S1 S2 S3
S4 S5 S6 S7
Component of Relation ::
Table :: Table is composed of records and fields that hold
data.
Table :: Student
Primary key
Candidate Key
Primary key
Alternate Key :: A Candidate key that is not the primary key
is called the Alternate key. Alternate key is also called
secondary key.
Candidate Key
Primary key
Alternate
key
Condition
Π City(Suppliers)
Duplicacy isCity
automatically removed in above query.
Delhi
Mumbai
Banglore
Jaipur
ΠItem_Name(σPrice>14.00(Items))
Item_Name
Milk
Ice Cream
Namkeen
Table :: Instructor
Table :: Drama
Roll _No Name Age
13 Kush 15
17 Swati 14
Table :: Song
Drama U Song
Table :: Drama
Table :: Song
Drama – Song
Table :: Song
Drama n Song