Professional Documents
Culture Documents
Presentation 2
Presentation 2
ALLAH
NORMALIZATION
Normalization is based on
functional dependencies (FDs)
A type of relationship between
attributes of a relation
If B is a subset of A then A B,
it also implies that A A
always hold, that is
stName, stAdr stName
Or stName stName
Department of Computer Science
Augmentation
If we have A B then
AC BC that is
if stId stName then
stId, stAdr stName, stAdr
If A BC then A B and
A C
if empId eName, qual
Then we can write it as
empId eName and empId qual
If A B and CB D then
AC D
if stId stName and
stName, fName stAdr
Then we can write it as
stId, fName stAdr
Redundancy
InsertionAnomaly
Deletion Anomaly
Updation Aomaly
MCS 68
BCS 132
BIT 134
MCS 68
BCS 132
BIT 134
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 60 24/03/12 24/04/13
killer ml
P0034 Rahat W11 84 Ortho 10334 Tetracycli Antibiot 5mg/ml IV 10 24/03/12 17/04/12
ne ic
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 10 25/04/13 24/04/14
killer ml
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 60 24/03/12 24/04/13
killer ml
P0034 Rahat W11 84 Ortho 10334 Tetracycli Antibiot 5mg/ml IV 10 24/03/12 17/04/12
ne ic
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 10 25/04/13 24/04/14
killer ml
P# Name W# Bed WName Drg# DName Desc Dosg Mthd U/Day SDate FDate
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 60 24/03/12 24/04/13
killer ml
P0034 Rahat W11 84 Ortho 10334 Tetracycli Antibiot 5mg/ml IV 10 24/03/12 17/04/12
ne ic
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 10 25/04/13 24/04/14
killer ml
•FDs
•P# Name, W#, Bed, Wname (Assumption: New P# every visit)
•W# Wname
•Drg# Dname, Desc, Dosg, Methd
•P#, Drg#, Sdate U/Day, Fdate
•Dname Drg#,
•
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 60 24/03/12 24/04/13
killer ml
P0034 Rahat W11 84 Ortho 10334 Tetracycli Antibiot 5mg/ml IV 10 24/03/12 17/04/12
ne ic
P0034 Rahat W11 84 Ortho 10223 Morphine Pain 10mg/ Oral 10 25/04/13 24/04/14
killer ml
Patient Ward
P# Name Bed W# W# WName
Drug Treatment
Drg# DName Desc Dosg Mthd P# Drg# SDate U/Day FDate
10223 Morphine Pain killer 10mg/ml Oral P0034 10223 24/03/12 60 24/04/13
NIN, contractNo
Patial Dependency ?
NIN eName
contractNo hNo, hLoc
Patient Hospital
Contract
Department of Computer Science
Department of Computer Science