Professional Documents
Culture Documents
(A,B,C,)
(A,D,E)
CS-15 1 P.T.O.
Show that this decomposition is a lossless
decomposition if the following set F of
functional dependencies holds :
A --> BC
CD --> E
BAD
D
E —> A
Cartesian Product
CS-15
(d) Given the relational schemes. 5x2=10
ENROLL (S.No., Course-No, Section)
TEACH (Prof-name, Course-No, Section)
ADVISE (Prof-name, S.No.)
PRE-REQ (Course-No, Pre-Course-No)
GRADES (S.No., Course-No, Grade, Year)
STUDENT (S.No. S.Name)
Write the SQL queries for the following :
List all students taking courses with
Smith or Jones.
List all students taking atleast one
course that their advisor teaches.
List all the students who are enrolled
for course-no "101".
List the name of the students enrolled
in the prerequisite course for course-
No. '105'.
(v) List all the professors who teach
course-no "109".
CS-15 3
(b) Explain the differences between the 5
file - oriented system and the
database - oriented systems.
-o0o-
CS-15 5