Sie sind auf Seite 1von 2

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)

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. (ii) Get the names of doctors who are treating patients with Polio. [3]

5Q-Explain the concept of generalization and aggregation in E_R diagrams. Give one example for each one of them. [2] 6Q- A well-maintained relational DBMS has a high level of data integrity. What features of a relational DBMS contribute towards this level of integrity? [2] 7Q- 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 8Q- 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 . 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, EMP-NAME, EMP-ADD and EMPBDATA. The company has another entity PROJECT that has several projects having attributes such as PROJ-ID, PROJ-NAME and START-DATE. Each employee may be assigned to one or more projects, or may be assigned to a project. A project must have at least one employee assigned and may have any number of employees assigned. An employees 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. By making additional assumptions, if so required, drawn an E-R diagram for the above situation [3]

Das könnte Ihnen auch gefallen