Activity4 Solutions
Activity4 Solutions
Qata Fundam
mental of Daatabase Sysstems
Dept. of Compu uter Sciencce & Engin
neering (CMPS S351)
Sp
pring 2018
Classs Activitty on (N
Normalizaation)
NF
1N
ORDE ER(order#, product#, customer#,
c n
name,
ad
ddress, ordeerdate, descrription, quanntity, unitprrice)
2N
NF
ORDE ER(order#, customer#,, name, addrress, orderddate)
ORDE ER_LINE(oorder#, prodduct#, quanttity)
PROD DUCT(prod duct#, description, unitpprice)
3N
NF
ORDE ER(order#, customer#,, orderdate)
CUST TOMER(cu ustomer#, naame, addresss)
ORDE ER_LINE(oorder#, prodduct#, quanttity)
PROD DUCT(prod duct#, description, unitpprice)
PA
ATIENT (P Patient#, Name, DOB, Address,
A (P
Prescription##, Drug, Daate, Dosage,, Doctor#, D
Doctor,
Seecretary))
1N
NF
Assuming the PK is Book_title, and Author_name, , this relation will be in 1NF because there is no
multi_values , composite or nested attribute.
2NF
BOOK (Book_title, Book_type, List_price, Publisher)
Author(Author_name, Author_Affil)
Author_Book(Auther_name, Book_title)
3NF
BOOK (Book_title, Book_type, Publisher)
Type_Price(Book_type, List_price)
Author(Author_name, AuthorAffil)
Author_Book(Auther_name, Book_title)