0% found this document useful (0 votes)
84 views

DBMS Question

The document is a midterm exam for a Database Management Systems course. It contains 6 questions, asking students to: 1) Define normalization, compute functional dependencies, and identify candidate keys for a relation. 2) Explain the 3-level DBMS architecture and physical/logical data independence. 3) Design database tables and schemas for managing Dhaka city development projects. 4) Define 1:1, 1:M, and M:N relationships between tables with examples. 5) Identify non-prime attributes, convert a table to 2NF, and define transitive dependencies.

Uploaded by

Golam Daiyan
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

DBMS Question

The document is a midterm exam for a Database Management Systems course. It contains 6 questions, asking students to: 1) Define normalization, compute functional dependencies, and identify candidate keys for a relation. 2) Explain the 3-level DBMS architecture and physical/logical data independence. 3) Design database tables and schemas for managing Dhaka city development projects. 4) Define 1:1, 1:M, and M:N relationships between tables with examples. 5) Identify non-prime attributes, convert a table to 2NF, and define transitive dependencies.

Uploaded by

Golam Daiyan
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

EASTDELTAUNIVERSITY (EDU)

Mid Term Examination–Spring 2023


School of Science, Engineering and Technology
Department of Computer Science and Engineering
Course Title: Database Management System
Course Code: CSE 225

Time: 1.20 Hours Full Marks: 30

Answer any three questions from the following: 3X10 =30


1. a) What is normalization? Compute the closure of the following set F of functional 5
dependencies for relation schema R = (A, B, C, D, E). FD: {A  BC, CD  E, B  D, E
A}. List the candidate keys for R.

b) State the difference between file system and DBMS? 2

c) Explain the components of ER model? 2

d) Explain prime attributes and non- prime attributes? 1

2. a) Explain 3-level architecture of DBMS. Does the model provide physical and logical data 6
independence? Explain it.
b) Assume a relations or tables of students where attributes may be namely studID, Name, 4
Email, Phone, address, Voter ID, bank ID etc. Define super key, candidate key, and
primary key from the relation with suitable explanation.

3. Dhaka City Corporation (DCC) has decided to make Dhaka to be the true best city in the world. 10
All the personnel in DCC are so much determined. They worked day and night to think how
they can make this city better. At the end they thought they must need the help of IT
professionals and Urban Planning Team. Urban Planning Team finds out several major things
which need to be changed. IT professionals were to implement this into website and app.

a. Identify 7 major problems in Dhaka city. Create a table for this in your database and also
draw the schema for this table.
b. Dhaka City Corporation is divided into Dhaka South City Corporation and Dhaka North
City Corporation. Create a proper table for DCC and the employees for DCC.(Draw
Schema diagram for the tables)
c. There are many locations like Farmgate, Motijhil, Bongshal, etc, which are either in
North City Corporation or South City Corporation. Create a table and draw schema for
this.
d. Think about 1 more major entity in your database. Now, draw the total schema diagram
and make proper relations among these tables. (Guess any necessary attributes you want
to provide)

Page 1 of 2
4. Define 1:1, 1: M and M:N relationships from the given tables with proper selection of primary 10
key, foreign key and composite key.
a) A Bank consists of Employees and different branches across the country. Define 1:1
relation between Employee< EId, Ename, Age> and Department<Did, DepartName,
Loc> with inserting number of instances in the tables? How many relations /tables are
created after establishing 1:1 to relation with Employee entity to Department Entity?
Which attributes would be assigned as primary keys or foreign keys? Is there any
composite key available?
b) An e-commerce website where customers ordered multiple products through online.
Define 1: M relation between Customer< CusID, CusName, City > and product
order<OrderNo, ItemName, cost> with inserting multiple instances or tuples in the
table? How many tables are created at 1: M relation? Which attributes would be primary
key?
c) A University result processing system will maintain student’s academics information.
Define M: N relation between student<RollNo, Name, Age> and Enrollment<courseID,
CourseName, Credit> with inserting multiple instances in the Table? How many tables
are created? which attributes would be primary or composite key.

5. a) Define non- prime attributes from the tables. Convert this table into 2NF? 5

CusID StoreID Location


100 1 Dhaka
100 3 Chittagong
200 1 Dhaka
300 2 Coxbazar
400 3 Chittagong

b) Define transitive dependency from the table? Which keys are candidate, prime and non- 5
prime attributes? Assume FD :{ RollNo-> State, State->City} of the given table. Convert
the given table into 3NF?
RollNo State City
1 Ctg Ctg
2 Ctg Banskhali
3 Ctg Hatazari
4 Panjab Mohal
5 Barisal Pirojpur
6 Ctg Hatazari

Page 2 of 2

You might also like