Brief Answer Questions:
[10 × 1 = 10]Define database.
What is a Queries?
What is composite key?
List any two advantages of using centralized database.
Define data independence.
Give an example of one to one relationship.
Write a syntax of delete operation in SQL.
Define anomalies.
Define transaction.
Define database recovery.
Short Answer Questions: (Attempt any FIVE Questions)
[5 × 3 = 15]List and explain different database users.
Explain shadow paging.
Define specialization with an example.
Explain ACID property.
What is a view in SQL? Write syntax to create a view.
Define Instance and schema in dbms.
Long Answer Questions: (Attempt any THREE Questions)
[3 × 5 = 15]Define Join and explain its types.
Explain Two-phase locking concurrency control technique.
Explain Recovery Techniques based on immediate update.
Design an ER diagram for a Hospital Management System to track patients, doctors, departments, and appointments. The system should store information about patients, doctors, the departments they work in, and the appointments patients have with doctors.
Comprehensive Answer / Case / Situation Analysis Questions:
[12 × 10 = 20]Consider a database with the following scheme and write SQL queries for following questions.
Customer (C_id, CName , address, age)
Buys item (Code, iname, price, C_id)
a. Write DDL statement to create above schema.
b. Add new customer.
c. List the Name of customer whole age is greater than 50.
d. Update the address of customer to Kathmandu whose C_id = 110.
Define Normalization. Explain 1NF, 2NF, 3NF and BCNF with example.