You are on page 1of 3

Bangladesh Army University of Engineering & Technology (BAUET)

Department of Information and Communication Engineering (ICE)


B. Sc. Engineering 4th Year 1stSemester Final Examination Fall-2020
Course Title: Database Management System
Course Code: ICE4131
Full Marks:40 Time:02 Hours
N.B : 1. Answering Question no 1 is mandatory.
2. Answer any Two of the following Three questions for each section.
3. The figure shown in the margin indicates full marks.

Section -A
1. (a) Define Database Management System (DBMS).Carry out the major 3
applications of database management system.
(b) What do you understand by file system of database? List the drawbacks of 4
using file systems to store large volume of data and find the solutions to the
drawbacks.
(c) Design a database application program for your university database. 3

2. (a) What do understand by database utilities?Explain Three-tier Client Server 3


architecture of database with appropriate figure.
(b) Analyze the three phases of database design.Can you make a distinction 3
between logical design and physical design in database design process?
(c) Categorize personnel involved in DBMS. Differentiate between actors on the 4
scene and workers behind the scene.

3. (a) What do you understand by data independence? Can you make a distinction 3
between logical data independence and physical data independence?
(b) Analyze object-relational data model and semi-structured data model in DBMS. 3
(c) Can you identify Super Key, Candidate key, Primary key and Alternate key 4
from the following relation R?
Relation, R
Attribute1 Attribute2 Attribute3
a a a
b a b
c b a
d b b
Section -B
4. (a) Define Structured Query Language (SQL). Briefly describe the variety of 3
built-in data types which are supported by SQL language.
(b) Describe the roles of select clause, from clause and where clause in SQL 3
language.
(c) Give an expression in the SQL to express each of the following queries: 4
i. Create a table named Employee (Employee_ID, Employee_Code,
Employee_Name, Salary, Employee_Status).
ii. Insert five rows into the table.
iii. Find the maximum and minimum salary of the employee whose
salary is greater than 10000.
iv. Find the total salary of the employee whose salary is greater than
20000 and less than 100000.
v. Show the number of employees and the name of the employees in
the descending order who has the same salary.

5. (a) Define the following terms: 3


(i) Relation (ii) Tuple (iii) Attribute (iv) Domain.
(b) Explain natural join, inner join and outer join with appropriate examples 3
between two relation.
(c) Consider the following relational database: 4
classroom(building, room_number, capacity)
department(dept_name, building, budget)
course(course id, title, dept_name, credits)
instructor(ID, name, dept_name, salary)
teaches(ID, course_id, sec_id, semester, year)
section(course_id, sec_id, semester, year, building,
room_number)
here, primary keys are underlined. Give an expression in the SQL to express
each of the following queries:
i. Find the names of all departments whose building name includes
the substring 'Watson'.
ii. Find the name list in ascending order of all instructors in the
Physics department.
iii. Find the names and average salaries of all departments whose
average salary is greater than 42000.
iv. Find names of instructors with salary greater than that of some
instructor in the Biology department.
v. Find all students who have taken all courses offered in the Biology
department.
6. (a) What are the different types of SQL joins? Give a brief introduction to them. 3
(b) Let’s consider the following relations r and s. 3

i) Find Cartesian Product: 𝑟 × 𝑠


ii) Find Natural join:
(c) Let’s consider the following relations Customer and Order. 4
Customer
Customer_ID Name Age Address
1 Tipu 32 Dhaka
2 Akash 25 Natore
3 Naim 23 Bogura
4 Jaber 27 Feni
5 Faisal 35 Cumilla

Order
Order_ID Customer_ID Amount
102 3 3000
100 3 1500
101 2 2000
103 4 2500
What will be the output of following join operations between the two
relations?
i) Inner join
ii) Natural left outer join
iii) Natural right outer join
iv) Natural full outer join

You might also like