D.O.

S=15TH FEB 2012

MM= 20

1Q - Describe the basic feature of relational data model. Discuss their advantages, disadvantages and importance to end user and the designer. [2] 2 Q- Consider the following relations for a database that keeps track of business trips of salespersons in a sales office: SALESPERSON (SSN, Name, start_year, Dept_no) TRIP (SSN, From_city, To_city, Departure_Date, Return_Date, Trip_ID) EXPENSE(TripID, Account#, Amount) Specify the following queries in relational algebra: (i) Give the details (all attributes of TRIP) for trips that exceeded $2000 in expenses. (ii) Print the SSN of salesman who took trips to ‘Honolulu’ (iii) Print the trip expenses incurred by the salesman with SSN= ‘234-56-7890’. Note that the salesman may have gone on more than one trip. List them individually [3] 3. Q- Consider a database used to record the marks that students get in different exams of different course offerings. a. Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for the above database. b. Construct an alternative E-R diagram that uses only a binary relationship between students and course-offerings. Make sure that only one relationship exists between a particular student and course-offering pair, yet you can represent the marks that a student gets in different exams of a course offering 4 Q Consider the following relational schema: Doctor(DName ,Reg_no) Patient(Pname , Disease) Assigned_To (Pname ,Dname)

(ii) Get the names of doctors who are treating patients with ‘Polio’. The company has another entity PROJECT that has several projects having attributes such as PROJ-ID. h a s a n e n t i t y E M P L O Y E E w i t h a number of employees having attributes such as EMP-ID. or may be assigned to a project. and uses a ternary relationship. EMP-NAME. What features of a relational DBMS contribute towards this level of integrity? [2] 7Q.A c o m p a n y c a l l e d M / s A B C C o n s u l t a n t s L t d . PROJ-NAME and START-DATE. yet you can represent the marks that a student gets in different exams of a course offering 8Q.Consider a database used to record the marks that students get in different exams of different course offerings. EMP-ADD and EMPBDATA. [3] 5Q-Explain the concept of generalization and aggregation in E_R diagrams. By making additional assumptions. Construct an E-R diagram that models exams as entities. Give one example for each one of them. if so required. An employee’s billing rate may va r y by pr oj ec t a nd t he c om p a n y wi s h e s t o r e c o r d t h e a p p l i c a b l e b i l l i n g r a t e (BILL-RATE) for each employee when assigned to a particular project. b. a. Construct an alternative E-R diagram that uses only a binary relationship between students and course-offerings. A project must have at least one employee assigned and may have any number of employees assigned. Make sure that only one relationship exists between a particular student and course-offering pair. [2] 6Q.Give expression in both Tuple calculus and Domain calculus for each of the queries: (i) Get the names of patients who are assigned to more than one doctor. for the above database. Each employee may be assigned to one or more projects.A well-maintained relational DBMS has a high level of data integrity. drawn an E-R diagram for the above situation [3] .

Sign up to vote on this title
UsefulNot useful