DBMS Question
DBMS Question
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
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