Tribhuvan University

Institute of Science and Technology

2080-new

Bachelor Level / fourth-semester / Science

Computer Science and Information Technology( CSC265 )

Database Management System

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

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.

SECTION A

Attempt any TWO question.

1

Consider a banking database with three labels and primary key underlined as given below:

Customer (CustomerID , CustomerName, Address, Phone, Email)

Borrows (CustomerID, LoanNumber )

Loan ( LoanNumber , LoanType, Amount )

Write both relational algebra and SQL queries:

  1. To display name of all customers who live in “Lalitpur” in ascending order of name.
  2. To count total number of customers having loan at the bank.
  3. To find name of those customers who have loan amount greater than or equal to 500000.
  4. To find average loan amount of each accoun’t type.

 

 

2

What are informal design guidelines for relational schemas? why do we need functional dependencies? Explain 2NF, 3NF with suitable example.

3

Explain deadlock with example. What are different deadlock prevention protocols? Explain deadlock detection and starvation.

SECTION B

Attempt any EIGHT question.

4

What are the characteristics of database approach? Explain.

5

Define data independence. Explain three-schema architecture.

6

What is specialization? What are different constraints on specialization?

7

What is relational database? Explain different characteristic of a relation. Defain domain constraint.

 

8

What is tuple realtion calculus ?  Given the following schema, write tuple relational calculus for selecting name and address of employee who are working in a company having Cid=E01

Employee(Eid, Ename, Address, Cid)

Company(Cid, CName)

9

Explain schedule based on recoverability and serializability.

10

How timestamp ordering protocol is used for ensuring concurrency control?

11

Why database recovery is essential? Explain recovery technique based on immediate update.

12

Write short notes on:

  1. Transaction processing
  2. Weak entity