8.6 KB · commit 40bb182
Department of Electrical & Computer Engineering
Course No: ECE 2215
Course Title: Database Systems
| Question No. | Question Description | Marks |
|---|---|---|
| Q.1 (a) | Why DBMS is important? What are its advantages? | 03 |
| Q.1 (b) | What are entity and entity set? How is a weak entity set handled in DBMS? Explain. | 03 |
| Q.1 (c) | Suppose you are recruited as a database specialist by the Rajshahi High-Tech authority to help them design a database for train e-ticketing system efficiently. Now think the regular features and draw an E-R diagram accordingly. | 06 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.2 (a) | What is data abstraction? Describe the different level of data abstraction. | 04 |
| Q.2 (b) | Consider the following relational database.Patient (Patient_ID, Patient_name, Mobile)History (Patient_ID, Symptom, Date)Report (Parient_ID, Corona_center, Test_result)Now write down the relational algebra (Not SQL) to find out the following queries. (i) Find the names of those patients who have fever symptom. (ii) Consider that if any patient has high-fever symptom he/she will be suspected as corona patient. Find out such maximum number of patients in a date. (iii) Find out the mobile numbers of those patients who have provided samples in Rajshahi corona center and their results have become positive. (iv) Find out the name of those patients who have high fever symptom but test result have become negative. (Note: Printed as "Parient_ID" in Report schema in original question paper; refers to "Patient_ID") | 08 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.3 (a) | What is normalization? Discuss 1NF and 2NF. | 04 |
| Q.3 (b) | Explain the consistency property of a database system with a proper example. | 03 |
| Q.3 (c) | What is joining? Discuss each type of joining between two data tables with example. | 05 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.4 (a) | What is concurrency control? Consider the following two transactions. T1: read (P);read (Q);if P=10 then Q:=Q-5;write (Q);T2: read (Q);read (P);if Q=10 then P:=P+5;write (P);Let the consistency requirement be P=5 or Q=5 with P=Q=5 the initial values. (i) Show a concurrent execution of T1 and T2 that produces a serializable schedule. (ii) Is there a concurrent execution of T1 and T2 that produces a serializable schedule? (Note: In the printed question paper, sub-question (ii) is printed identically to (i) as "Is there a concurrent execution of T1 and T2 that produces a serializable schedule?") | 07 |
| Q.4 (b) | How many ways a DBMS could be failed? What precautions should be taken considering the failure of DBMS and point out the recovery methods. | 05 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.5 (a) | Write a short note on SQL. | 02 |
| Q.5 (b) | Consider the following relational database.Patient (Patient_ID, Patient_name, Mobile)History (Patient_ID, Symptom, Date)Report (Parient_ID, Corona_center, Test_result)Now write down the SQL (Not Algebra) to find out the following queries. (i) Find the names of those patients who have-fever symptom. (ii) Consider that if any patient has high fever symptom he/she will be suspected as corona patient. Find out such maximum number of patients in a date. (iii) Find out the mobile numbers of those patients who have provided samples in Rajshahi corona center and their results have become positive. (iv) Find out the name of those patients who have high fever symptom but test result have become negative. (Note: In the physical question paper, SECTION-B heading and Q.5(a)–(b) appear at the bottom of Page 1; Q.5(c) continues at the top of Page 2) (Note: Printed as "Parient_ID" in Report schema in original question paper; refers to "Patient_ID") | 08 |
| Q.5 (c) | Write down the SQL queries to create the following tables.Patient (Patient_ID, Patient_name, Mobile)History (Patient_ID, Symptom, Date)Report (Parient_ID, Corona_center, Test_result)(Note: Printed as "SQI." and "Parient_ID" in original question paper) | 02 |
| Question No. | Question Description | Marks | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.6 (a) | Consider the following data tables. Student
Now, (i) Carefully notice the entries and point out your opinion regarding space efficiency. (ii) What will happen if you update any particular information? (iii) What will happen if you are asked to delete 'ECE-2107' from the registered course list preserving all other information? | 06 | ||||||||||||||||||||||||||||||||||||||||||
| Q.6 (b) | Discuss the different keys in DBMS. Write down the importance and use of foreign key with example. | 06 |
| Question No. | Question Description | Marks | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Q.7 (a) | Considering the following data tables (Student, GPA, Credits) answer (i), (ii), (iii), & (iv). Student
GPA
Credit
(i) Write down the SQL query to show the list of students who got the lowest gpa. (ii) Write down the SQL query to find out the registered subjects of those students whose name started with "A". (iii) Write the SQL query to calculate the cgpa of each student using the formula, cgpa=∑Credit∑gpa⋅Credit (iv) Generate a list showing each subject code and corresponding highest gpa. (Note: In sub-question (i), printed as "SQI." in original question paper) | 12 |
| Question No. | Question Description | Marks |
|---|---|---|
| Q.8 (a) | Discuss about four aggregate functions. | 04 |
| Q.8 (b) | Write down two examples of using sub-queries. | 04 |
| Q.8 (c) | Write short note on the following statements. (i) ON CASCADE DELETE. (ii) Group By. | 04 |