8.7 KB · commit 40bb182
Department of Electrical & Computer Engineering
Course No: ECE 2215
Course Title: Database Systems
(Note: In the original printed question paper, Course Outcomes are provided in a dedicated margin column titled "CO").
| Question No. | Question Description | Marks | CO |
|---|---|---|---|
| Q.1 (a) | A courier tracking company maintains large files for daily parcel updates. The data grows rapidly and requires fast retrieval. Choose between a file based system and a DBMS and justify the decision. | 04 | 1 |
| Q.1 (b) | Draw an E-R diagram for RUET student database which can be used to store student’s basic information, course advisor’s information, subject registration, result information. | 02 | 3 |
| Q.1 (c) | STUDENT (SID, Name, Age, Major) COURSE (CID, Title, Credits) ENROLLMENT (SID, CID, Grade) Using the above schema, write a SQL query to find the average grade for each course. | 04 | 2 |
| Question No. | Question Description | Marks | CO |
|---|---|---|---|
| Q.2 (a) | Discuss how trigger can contribute to the security of database before and after a security breach. Explain with example. | 03 | 2 |
| Q.2 (b) | EMPLOYEE (EID, Name, Department, Salary) PROJECT (PID, Name, Budget) WORKS_ON (EID, PID, Hours) Suppose a company wants to find employees working on multiple projects. Write the relational algebra expression for it. | 04 | 1 |
| Q.2 (c) | Explain the consistency property of a database system with a proper example. | 03 | 1 |
| Question No. | Question Description | Marks | CO |
|---|---|---|---|
| Q.3 (a) | A library database stores information about Books, Authors, Publishers and Borrowers. Create a table that contains some data redundancy and partial dependencies. Also, show the procedure to normalize the table. | 04 | 2 |
| Q.3 (b) | Discuss the ways of DBMS can be failed. Also, mention the precautions should be taken considering the failure of DBMS and point out the recovery methods. | 04 | 1 |
| Q.3 (c) | Differentiate between inner joining and outer joining. | 02 | 1 |
| Question No. | Question Description | Marks | CO | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.4 (a) | Consider the following tables: Courses
Teacher
Discuss the outcome when the following actions will be performed on these two relations. i) Natural Join ii) Left Outer Join iii) Right Outer Join iv) Full Outer Join | 06 | 2 | |||||||||||||||||||||||||
| Q.4 (b) | Write down the SQL queries for following operations: i) Create table for student (roll, name, dept) ii) Insert one example entry for student tbale iii) Modify the student table to student (roll, name, dept, session) iv) Show the roll and name of the students of ECE dept only. (Note: "tbale" printed verbatim in original paper; refers to table) | 04 | 2 |
| Question No. | Question Description | Marks | CO |
|---|---|---|---|
| Q.5 (a) | Consider the following relation database: Patient (Patient_ID, Patient_Name, Mobile) History (Patient_ID, Symptom, Date) Report (Patient_ID, Corona_center, Test_result) Now, write down the relational algebra (Not SQL) to find out the following queris: i) Find the names of those patients who have fever symptom ii) Find out the mobile numbers of those patients who have provided samples in Rangpur corona center and their results have become positive. (Note: "relation database" and "queris" printed verbatim in original paper; refers to relational database and queries) | 04 | 2 |
| Q.5 (b) | Define RDMS. Consider the following insurance database where the primary keys are underlined. Person (driver_id, name, address) Car (license, model, year) Accident (report_no, data, location) Owner (driver_id, license) Participated (driver_id, report_no, car, damage_amount) Write MySQL for the following queries – i) Find the number of accidents in which the cars belonging to “John Smith” were involved. ii) Add a new accident to the database, assuming any values for required attributes. iii) Update the car “Mazda” belonging to “John”. iv) Update the damage amounts $3000 for the car with license number “YJK-100” in the accident with report number “APR2197”. (Note: "RDMS" and "data" printed verbatim in original paper; refers to RDBMS and date) | 06 | 2 |
| Question No. | Question Description | Marks | CO |
|---|---|---|---|
| Q.6 (a) | Explain sub-queries with two suitable examples. | 04 | 2 |
| Q.6 (b) | An e-commerce system wants to automate actions when a new order is inserted such as updating stock and sending email. Implement a database trigger that handles this workflow. | 04 | 3 |
| Q.6 (c) | Briefly discuss the ACID properties of transaction. | 02 | 3 |
| Question No. | Question Description | Marks | CO |
|---|---|---|---|
| Q.7 (a) | Define aggregated functions. EMPLOYEE (EID, Name, Department, Salary) SALES (SID, EID, SaleAmount, SaleDate) The management wants to reward the top-earing department. Write a SQL query to find the total salary paid per department. (Note: "top-earing" printed verbatim in original paper; refers to top-earning) | 03 | 1 |
| Q.7 (b) | Write short note on the following statements – i) ON CASCADE DELETE ii) Group By iii) Order By iv) As | 04 | 1 |
| Q.7 (c) | A multimedia archive contains very large image and video files. RAID is recommended for storage. Compare different RAID levels. | 03 | 3 |
| Question No. | Question Description | Marks | CO | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.8 (a) | If concurrency-control management is not implemented properly what problem may occur? Explain with example. | 03 | 3 | ||||||||||
| Q.8 (b) | When a transaction is rolled back under timestamp ordering and it is assigned a new timestamp? Why can it not simply keep its old timestamp? | 03 | 3 | ||||||||||
| Q.8 (c) | Consider the following schedule:
Determine whether the schedule is conflict serializable or not. | 04 | 3 |