Theory Assignment - 1 Question
Theory Assignment - 1 Question
Figure.1
3. Map the following ER diagram (Figure 2) to its corresponding relational schema. Also indicate the
primary key and foreign key for the relational schema.
Figure 2.
4. Draw the schema diagram for the relational schema resulted in question 3.
5. Suppose that we decompose the schema r(A,B,C,D,E) into r1(A,B,C) and r2(A,D,E). Show that
this decomposition is a lossless decomposition if the following set F of functional dependencies
holds:
A BC
CD E
B D
E A
Find the CD+ and E+.
6. Compute the closure of the following set F of functional dependencies for relation schema
r(A, B, C, D, E, F).
A BC
CD E
B D
E A
List the candidate keys for r.
7. Consider the relation schema Student mark (regd, name, course_id, title, grade) with functional
dependency set F= {regdname, course_id title, (regd, course_id) grade}. In what normal
form the relational schema is in? Comment whether it satisfies 2NF or not with reason. If it is not
in 2NF, find the 2NF decomposition of the schema and check the properties of decomposition.
8. Consider the relation schema Book (Title, Author, Catalog_no, Publisher, Year, Price) with
functional dependency set
F= {(Title, Author) (Catalog_no, Price),
Catalog_noTitle
Catalog_no Publisher,
Catalog_noYear,}
Comment whether it satisfies 3NF or not with reason. If it is not in 3NF, find the 3NF
decomposition of the schema and check the properties of decomposition.
10. Consider the relation schema r (PAN, PI, DI, DRUG, QTY, COST) with functional dependency set
F= {PAN PI,
PI DI,
(PI, DRUG) QTY,
(DRUG, QTY) COST}
a) Comment whether it satisfies 3NF or not with reason. If it is not in 3NF, find the 3NF
decomposition of the schema and check the properties of decomposition.
b) Comment whether it satisfies BCNF or not with reason. If it is not in BCNF, find the BCNF
decomposition of the schema and check the properties of decomposition.
------------------------------------------------------**End**--------------------------------------------------------------