Questions On Normalization Q.1
Questions On Normalization Q.1
Q.1.
b. not in 2NF because partial dependency due to the FD, salesman#--> commission%, so
commission% is partially dependent on the primary key {car#, salesman#}
Normalizing to 2NF:
Car_Sale
Salesman
salesman# commission%
Normalizing to 3NF:
Salesman
salesman# commission%
Car_Sale
Discount_Info
date_sold discount_amt
Q.2. (Book_Title is primary key)
Answer:
b. Applying 3NF because there is transitive dependency due to 2nd and 3rd FD.
Book_price_info(Book_type, List_price)
** Note: Table names are up to you, you can give any name you want, but it is preferrable to
give meaningful names as I have done above.
Q. 3.
Answer:
b. It is not in 2NF as there is partial dependency due to FD IV. Therefore normalizing to 2NF:
Collection(Title,Author,Catalog_no)
Book(Title, Author, Catalog_no, Publisher, Year, Price, bookCoverType)
Author_Info(Author, ContractDate)
Now normalizing to 3NF as there is still transitive dependency in “Book” table due to Fd II and
III.
Collection(Title,Author,Catalog_no)
Author_Info(Author, ContractDate)
Book(Title, Author, Catalog_no)
Catalog(Catalog_no, Publisher, year, bookcovertype)
Price_info(Publisher, bookcovertype, price)
**Important Note: If any attribute is not mentioned in any FD, then by default they will be
dependent on the whole primary key and therefore they should be placed in the original
table.Example given below:
So, it is not mentioned what submission_date or grade depends on, so by default they should
be considered to be fully dependent on entire primary key {project_id, student_id}
Solution:
a. In 1NF, not multivalued/composite attribute or nested relations.
b. FD1 and FD2 cause partial dependencies so not in 2NF. Normalizing to 2NF: