Database Management System 2072

Tribhuwan University
Institute of Science and Technology
2072
Bachelor Level / Fourth Semester / Science
Computer Science and Information Technology ( CSC-253 )
( Database Management System )
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Attempt all the questions.

1. Answer the following questions in short: (5x2=10)

    a)Three-schema architecture

2 marks view

    b) Advantage of DBMS approach over file system approach.

2 marks view

    c) What is weak entity, owner entity type and identifying relationship?

2 marks view

    d) Different types of data attributes.

2 marks view

    e) Differentiate between program-data independence and program-operation independence.

2 marks view

2. (a) Given an ER diagram for a database showing Bank. Each Bank can have multiple Branches, and each branch can have multiple accounts and loans. [6]

5 marks view

    (b) What is union compatibility? Define operations union, intersection, and difference on two union compatible relations R and S with suitable example.[4]

4 marks view

3. (a) Describe the different clauses in the syntax of an SQL query, and show what types of constructs can be specified in each clause.[5]

5 marks view

    (b) How view is defined in SQL? Explain the problems that may arise when one attempts to update a view. [1+4]

5 marks view

4. (a) Define Boyce-Codd normal form. How does it differ from 3NF? Why is it considered a stronger form of 3NF? [1+4]

5 marks view

    (b) What is a functional dependency? When are two sets of functional dependencies equivalent? How can we determine their equivalence? [1+4]

5 marks view

5. (a) Discuss the ACID properties of a database transaction with suitable example.[5]

    (b) Indicate how the recovery scheme works in a single user environment if the system fails

        i)After the transaction starts and before the read.

        ii)After the read and before the write.

        iii)After the write and before the commit.

        iv)After the commit and before al database entries are flushed onto disk.[5]

10 marks view

6. (a) What is the two-phase locking protocol? How does it guarantee serializability?[5]

5 marks view

    (b) What is meant by transaction rollback? What is meant by cascading rollback? Why do practical recovery methods use protocols that do not permit cascading rollback? [5]

5 marks view