Brief Answer Questions:
[5 × 1 = 5]Define data model.
Differentiate between simple and composite attribute.
List out any four aggregate function in SQL.
Define Atomicity and Durability properties of transaction management.
What is data quality management?
Short Answer Questions:
[5 × 3 = 15]Explain any three roles and responsibilities of Database Administrator.
List and explain any three types of degree of Relationship set with example.
Describe how Database can be secure.
Explain different types of anomalies in database.
Explain the types of outer join with example.
Analytical Questions:
[2 × 10 = 20]a. Consider the following relation
Customer (CID, ACCOUNTNO, CNAME, ADDRESS, AGE)
Write SQL for the following queries.
i. Insert information of two customers in a table Customer.
ii. Display name and accountno of Customers whose name end with “e”
iii. Display the name and address of those customers who doesnot live in “Kathmandu”.
iv. Count the number of customers.
v. Display CID and age of those Customers whose age lies between 16 and 50. [5]
b. Consider a hospital system including Doctor (Did, dname, dspecialization, ddepartment), Nurse (nid, name, ndepartment) and patient (pid, pname, paddress) as entities. A doctor may treat many patients in the hospital. Nurse helps the doctor in treatment process. Draw the E-R model for above scenario assuming necessary constraints.
Normalize the following relation up to 3 NF.
| D-ID | D-Name | E-ID | E-Name | Address | Contact no |
| D01 | HRM | E01 | Ram | KTM | 9841,5560 |
| D02 | Finance | E02 | Shyam | PKH | 9841,5573 |
| D01 | HRM | E03 | Hari | BRT | 98510,2374 |
| D03 | CRM | E04 | Sita | BKT | 9830,9880 |