DMS PR 1
DMS PR 1
PART 1
I.
II.
III.
IV.
II. Procedure
4. Model the relation ships betw een each by draw in g lin es to con n ect related
en tities.
HASS Ban k
Ban k
Branches
Account Loan
Loan No
LC
AC
Customer
CustName
CustID
Custaddr
IV. Result (Output of the program)
W e have draw n symbols of E-R diagram an d few E-R models based on given
Database.
I.
II.
Q1. W rite steps to conver t a first n ormal form (1NF) to secon d n ormal form (2NF)
in a given table.
An s. a) 2NF is achieved w hen relation is in 1NF an d each attribute of the table is
fully fun ction ally depen den t on primar y key of the relation for iden tification .
An s. This table is n ot in 1NF because multiple data is presen t in a sin gle field in
third column .
b) Describe an d illustrate the process of n ormalizin g the data show n in this table
to third n ormal form (3NF)
Ans. AB
ID Address
BC
Address Contact
So AC
ID Contact
Tran sitive depen den cy can be stated as, Let R be a relation an d A,B,C are the set of
attributes.
These attributes are tran sitive depen den t w hen AB, BC, then A C.
In the above example Address is depen den t on ID, Con tact is depen den t on
Address. So Con tact is in directly depen den t
Studen t (Roll_ n o, Name, Bran ch, Bran ch_ ID, Spor ts, Men tor_ n ame,M_ ID) Conver t
follow in g table in to 2NF an d 3NF.
2NF
3NF
AB , BC so AC
III. Result (Output of the program)