Brief Answer Questions:
[10 × 1 = 10]Define Data abstraction.
Define Candidate key.
Write the advantages of object relational data model.
Write a syntax to rename a table name in SQL.
Write a syntax for ORDER BY clause.
Write down the use of GROUP BY clause.
What are the different types of outer join operation in SQL?
Define loss less - Join decomposition.
What is the use of mapping cardinalities?
Define the durability property of transaction.
Exercise Problems (Any Five):
[5 × 4 = 20]Explain the need of aggregation with example.
Draw an ER diagram for database showing bank. Each bank can have multiple branches, and each branch can have multiple accounts and loans.
What is participation constraint? Explain the different type of participation constraints.
Determine the normal form of following student table. If it is not in 3NF then normalize to 3NF.
| StudentID | StudentName | CourseID | Course Name | Credit | Contact_No |
| 101 | Ram | IT220 | DBMS | 3 | 9841XXXXXX,5573XXX |
| 102 | Sita | IT220 | DBMS | 3 | 9950XXXXXX |
| 103 | John | IT218 | DSA with JAVA | 3 | 9371XXXXXX, 2365XXXX |
| 104 | Jenny | ECO201 | Micro Econom ics | 3 | 9985XXXXXX, 4395XXX |
StudentID →StudentName
CourseID →CourseName
CourseID →Credit
Why concurrency control is needed? Discuss with suitable examples.
Explain time stamp based locking protocol with example.
Comprehensive Answer Questions (Any Two):
[2 × 5 = 10]Explain the types of database architecture with example.
If a multinational company consult you to design a database architecture of their company, as being Database Consultant, which architecture will you suggest among centralized and distributed, and explain why?
Assume a HR database of a Company. Where primary keys are underlined:
employees (EmpID, FirstName, LastName, Salary, DeptID)
departments (DeptID, DeptName, LocationID)
locations (LocationID, StreetAddress, PostalCode, City, ProvinceNo)
Write the SQL queries for each of the following cases.
a) The HR department needs a report to display the EmpID, first name, salary, for each employee whose salary is greater than 25,000 and less than 50,000.
b) Write a query to display the last name, salary, department name of all employees whose department id is 26.
c) Write a query to display the first name, department ID, department name, city for all employees who works in Lalitpur.
d) Update the salary of employee with 50000 whose EmpID is 220.
e) Create a view for employees table named as EmpView with attributes EmpID, FirstName and Salary.