You are on page 1of 1

BGC Trust University Bangladesh

Department of Computer Science & Engineering


Final Examination
Course Name: Database Management System
Semester: 5th January-July 2020 Section: B
Marks: 50 Time: 24 Hours
[Answer all questions. Submit answer script in proper format.]

Q.1 COVID-19 is also known as coronavirus. It was first reported to the World Health Organization (WHO) on December 31, 2019 in 10
Wuhan, China. It is devastatingly destroying our health and education system. Construct an ER diagram so that we can easily
access COVID-19 related information. Associate with each patient a log of the RT-PCR tests, examinations conducted and
residence information. Your design should include an E-R diagram and a list of constraints, including primary-key and foreign-key
constraints.

Q. 2 Consider question Q.1, write a set of relational schemas, and draw schema diagram. 10

Q. 3 Consider question Q.1, write SQL DDL for all relations, and insert a row with arbitrary values for all relations. 10

Q. 4 Describe how to translate join expressions in SQL to relational algebra. 10

Q. 5 Suppose you have following relations. Give an expression in the relational algebra to express each of the following queries: 10

Courses
Course Course Name Dept. Name
No Department
CSE 111 AAA CSE Dept. Name Chairman Name
MAT 222 BBB Mathematics CSE X
EEE 333 CCC Electrical and Electronic English Y
Engineering Electrical and Electronic Z
Engineering
Law A
a) Find dept. name for course no. CSE 111. Mathematics S
b) Find Chairman Name of CSE department.
c) Natural join between two relations.

You might also like