Official 2021 board examination paper for Database Management System.
Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications
| Paper detail | Value |
|---|---|
| Course | Database Management System |
| Code No. | CACS255 |
| Semester | IVth |
| Full marks | 60 |
| Pass marks | 24 |
| Time | 3 hours |
Candidates are required to answer the questions in their own words as far as possible.
Group B
2. What is database? Discuss the importance of DBMS.
3. Define union compatibility. Given following relations, show the resulting relation of Director ∩ Actor and Actor ∪ Director?
4. How Order By and Having Clause in SQL are different? Illustrate with suitable examples.
5. Why normalization is needed? When any relation is said to be in 1NF and 2NF?
6. How cost of query is measured during query processing? Construct query expression tree for the relational algebra query.
7. How wait-for-graph is constructed? How can you use it to detect deadlock in a schedule of transactions? Support your answer with an example.
8. How read and write operations are performed in a transaction? List the various states where transactions can enter into.
Group C
9. Given the schema as below, write relational algebra and SQL queries for following: Sailors(sid, sname, rating, age) Boats(bid, bname, colour) Reserves(sid, bid, reservedate)
- A. Find name, rating and age of all the sailors.
- B. Find the name and color of boats having color blue.
- C. Find name of the boats reserved on date 2021/07/20.
- D. Find the names of boats and sailors who have reserved boats having color green. e) Use Left and Right Outer Join between Sailors and Reserves.
10. a) Design an ER diagram of your choice. The ER diagram should contain at least five entities. Out of those entities, one should be weak entity. Your entities should have appropriate attributes including primary key attributes, if any. There should be presence of one to one relationship, one to many relationship and many to many relationships in your ER diagram. b) Convert the ER diagram into equivalent relational tables.
11. Define stored procedures and triggers. How they are applicable in database? Illustrate with examples, how can you create before and after triggers on INSERT query.