You are on page 1of 1
Birla Institute of Technology & Science, Pilani ' Work-lntegrated Learning Programmes Division Second Semester 2014-2015 ‘Comprehensive Examination (EC-3 Regular) Course No. + SS ZGS18 Course Title DATABASE DESIGN AND APPLICATIONS Nature of Exam : Open Book Betoun Weightage 50% No. of Pag Duration 3 Hours No. of Qui Date of Exam 18/04/2015 (AN) be Note: es, 1. Please follow all the Jnstructions to Candidates given on the cover page of the answer book 2. All parts of a question should be answered consecutively. Each answer should start from a fresh page 3._Assumptions made if any, should be stated clearly at the beginning of your answer. Q.1(@) Ina typical Film industry scenario, film making companies produce films. Sometimes a single film may be produced by more than one company. A Film making company hhas a banner (unique), start-year, CEO, and address. A film can be uniquely identified by film ID, and have other attributes like language, title, and year. Films are directed by only one Director. Films contain multiple actors. Film distributors buy films and distribute to exhibitors (Cinema halls). Distributors will have name (unique), region covered, and head quarters. One film is distributed by one or more distributors. We don’t have to maintain other details about actors, directors and cinema halls. () First draw an ER diagram for the above requirement. Assume necessary data which is missing in the question. The ER model should include- relationships, min-max, cardinality, participation conditions. (ii) Then design relational schemas to capture the data represented in the ER diagram you have drawn. [2+3=5] Q.1(b) Look at the following Database scherina. Student(sid, sname, branch, city) Course(cid, ename, credits) ‘Student_Course(stid, courseid, grade) _// stid is FK to sid, and courseid is FK to cid Now, write both Relational Algebra and SQL query expressions to: (®) Get the courseID and course name for those courses registered by all students from Delhi. [1+ 1.5=2.5] ii) For each 4 credit course, get the courseID and course_name and number of students registered for that course. [1+1.5=2.5] Note: You don’t have to rename the attributes in the result, and don’t use outer joins. Q2(a) (@ If arelation R with set of FDs F, is decomposed into RI, R2, and R3, give the gests i oreo check if the decomposition is dependency preserving or i Pa celia R(A,B,C)D,E) with functional dependencies F={4B>CD; Ce is decomposed into RI(A,B,D), R2(A,B,C), and R3(C,D,E), check if ion is dependency preserving or not? ees Bac working Ph ll eps 2+3=5] ‘Second Semester 2014-2015 Page 1 of 3

You might also like