10.0 KB · commit 40bb182
Department of Electrical & Computer Engineering
Course No: ECE 2215
Course Title: Database Systems
| Question No. | Question Description | Marks | CLO |
|---|---|---|---|
| Q.1 (a) | Draw an ER diagram for RUET Central Library Management System. You have to consider the entities mentioned below: (i) Books (ii) Members (iii) Staff (iv) Borrowing (v) Reservations | 05 | CLO4 |
| Q.1 (b) | What are the advantages of DBMS over file processing system? | 03 | CLO1 |
| Q.1 (c) | Explain DDL and DML with example. | 02 | CLO1 |
| Question No. | Question Description | Marks | CLO | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.2 (a) | Consider a university tracking students, their courses and exam scores. A sample table is given below. Step by step convert this to 3NF.
| 06 | CLO4 | ||||||||||||||||||||
| Q.2 (b) | What are the anomalies that normalization aims to eliminate? Provide examples of insertion, deletion and update anomalies. | 04 | CLO4 |
| Question No. | Question Description | Marks | CLO |
|---|---|---|---|
| Q.3 (a) | Write SQL queries for the following: (i) Create a table "Employee" with attributes: EmpID (primary key), Name, Age and Department. (ii) Insert a record into this table: EmpID=1, Name='Nafisa', Age=21, department='HR'. (iii) Find employees whose salary is greater than the average salary of their department. | 06 | CLO2 |
| Q.3 (b) | Explain the distinctions among the terms- (i) Primary key (ii) Candidate key (iii) Super key (iv) Composite key | 04 | CLO2 |
| Question No. | Question Description | Marks | CLO |
|---|---|---|---|
| Q.4 (a) | Discuss the features of RAID models. | 04 | CLO1 |
| Q.4 (b) | Briefly explain the importance of ACID properties of transactions with suitable example. | 04 | CLO3 |
| Q.4 (c) | Draw state diagram of a transaction. | 02 | CLO3 |
| Question No. | Question Description | Marks | CLO |
|---|---|---|---|
| Q.5 (a) | What are the benefits of VIEW? | 03 | CLO2 |
| Question No. | Question Description | Marks | CLO | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.5 (b) | Create a VIEW using SQL query that shows the EmployeeName, DepartmentName and salary for employees who earn a salary of more than 55,000. E.
D.
S.
| 03 | CLO2 | |||||||||||||||||||||||||||||||||
| Q.5 (c) | Define joining. Discuss different types of joining with suitable example. | 04 | CLO2 |
| Question No. | Question Description | Marks | CLO |
|---|---|---|---|
| Q.6 (a) | What is the difference between 'Truncate' and 'Delete' in SQL? | 02 | CLO2 |
| Q.6 (b) | Considering the tables (Products, Orders, and Auditlog) answer (i) and (ii). (i) Create a stored procedure to place an order consider stock availability, updates the stock. (ii) Create a trigger to log every stock update in the Auditlog table automatically. | 06 | CLO2 |
| Q.6 (c) | Write short note on " ON CASCADE DELETE". | 02 | CLO2 |
| Question No. | Question Description | Marks | CLO |
|---|---|---|---|
| Q.7 (a) | Explain the different types of failures that can occur in a database system. | 03 | CLO2 |
| Q.7 (b) | What is log based recovery? Illustrate with an example of a system crash and recovery process. | 04 | CLO2 |
| Q.7 (c) | Briefly describe the RAID model and its significance in database recovery. | 03 | CLO2 |
| Question No. | Question Description | Marks | CLO | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.8 (a) | Write short note on dense and sparse index. | 02 | CLO1 | ||||||||||||||||||||||||||||||||
| Q.8 (b) | Check whether the given schedules S is conflict serializeable or not. If yes, then determine all the possible serialized schedules.
(Note: "schedules S is conflict serializeable" printed verbatim from original question paper) | 04 | CLO3 | ||||||||||||||||||||||||||||||||
| Q.8 (c) | Discuss the given schedule based on Timestamp ordering protocol.
(Note: In the original paper schedule, W(C) of T1 and R(B) of T3 occupy essentially the same vertical tier. Since C and B are disjoint data items, the concurrency protocol evaluation remains unaffected). | 04 | CLO3 |