~stj.1) (gpny-,])~ .s;'f~ 1-library.spit.ac.in/qp/dec2007/te/d07te6-it-dbsys.pdf · p-2 ws oct...

Post on 24-Mar-2020

0 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

'~stJ.1) ~€NYJP.2 ws Oct 07 134

-.

b (gpNy-, - /a..l~ .s;'f~])~ Oe:/,2-!fJ1-

Con. 4845-07. (REVISED COURSE)(3 Hours)

CD-5655-[Total Marks: 100

N.S.: (1)(2)(3)(4)

Ouestion No.1 is compulsory.Attempt any four questions out of remaining six questions.Figures to the right indicate full marks. . .

Assume any suitable data wherever required but justify the same.

1. (a) Explain transaction state diagram.(b) Write relational Algebra operator Cartesian product, Natural join and outer joins

with example.(c) Explain Thomas' write Rule.(d) Explain indexing in DBMS. .

55

55

-.

2. Design and implement a database that manages information about Hospital. Someinformation includes :-

(a) Permanent d.octors get fixed salary. Personal information like name,address, .

date of birth etc. required. Consulting doctors visits at fixed -time everyday.Information like name, contact number, specialization, charges etc. are required.

(b) Patients are admitted to the hospital. Personal information like name, address,relatives name and address, patient's blood group, reason of admission etc.are required.

(c) Patients are admitted to room of different types, per day charges depend onroom type.

(d) Various labs in hospital, where several tests conducted on patient each testhas fixed charges.

(i) Draw an extended. E R diagram for the system~(ii) Design an object-oriented schema.

(iii) Take two typical queries and write them in OOL.

875

3. (a) What is difference between Persistent and Transient objects? How is persistence 10handled in typical object oriented system?

(b) Consider the following relational database :-,.......- Customer (Customer_id, customecname, customeccity)

Depositer (Customecid, AccounCno)

Account (Branch_name, AccounCno, Balance)

Borrower (loan_no, customecid)

. -Loan (Loan_no, amount)Write SOL for the following queries :-

(i) Find customer name who have highest balance at Dadar branch.(ii) Find customer id who have both loan and account.

(iii) Find customer names who have the same branch as ARS and having balancegreater than Rs. 15,000/-.

(iv) Find those brancheswherethe averageaccountb~lanceis more than Rs. 1 Lack.

10

[TURN OVER

P-2 ws Oct 07 135

Con. 4845-CD-5655-07. 2

4. (a) Since every conflict serializable schedule is view serializable, why do we emphasize 10conflict serializability rather than view serializability.

(b) Draw and explain database system architecture. 10

5. (a) We decompose the schema R = (A, B, C, D, E) into (A, B, C)(A, D, E). Show that 10this decomposition is a loss less-join decomposition ifthe followingset F of functionaldependencies holds:

A ~ BCCD~ EB ~ DE ~ A

(b) Ifdeadlock is avoided by deadlock avoidance schemes, is starvation still possible? 10Explain your answer.

6. (a) Compare the shadow-paging recovery scheme with the log-based recovery schemes 10in terms of case of implemention and overhead cost.

(b) (i) Define concept of referential integrity with example. 10 ~(ii) Explain authorization and views to provide security for a database.

7. Write shorts notes on (any four) :-(a) Assertion(b} O~ject structure and Object Identity(c) BCNF and 4 NF(d) Comparision of RDBMS, OODBMS, ORDBMS(e) Aggregate Functions.

20

top related