Database Management System 2067

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2067
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.

Official Answer
AI Generated Answer

AI is thinking...

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

    a) Differentiate between logical data independence and physical data independence.

2 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    b) Three-schema architectures.

2 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    c) Differentiate between database schema and a database state.

2 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    d) Different type of data attributes.

2 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    e) The difference among a relationship instance, a relationship type, and relationship set.

6 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. a) Draw an ER diagram for database showing Bank. Each Bank can have multiple branches, and each branch can have multiple accounts and loans. (6)

4 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    b) In what sense does a relational calculus differ from relational algebra, and in what sense are they similar? (4)

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. a) Assume a database about Company.(5)

     EMPLOYEE (ss#, name)

     COMPANY (cname, address)

     WORKS (ss#, cname)

     SUPERVISE ( superviser_ss#, employee_ss#)

     Write relational algebra and SQL queries for each of the following cases.

       i) Find the names of all supervisors that work in companies whose address equals ‘pokhara’.

       ii) Find the name of all the companies who have more than 4 supervisors.

       iii) Find the name of supervisor who has the largest number of employees.


5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    b) What is a view in SQL and how it is defined? Explain how views are typically implemented. (5)

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

4. a) Define a first, second, and third normal forms with suitable examples (5)

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    b) Describe the serial and serializable schedule? Why serializable schedule is consider correct?(5)

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6.a) How does the granularity of data items affects the performance of concurrency control? What factors affect selections of granularity size for data items?(5)

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

    b) Describe the two-phase commit protocol for database transaction. (5)

Details
Official Answer
AI Generated Answer

AI is thinking...