USN
GBGS SGHENE
BCS403
Fourth Semester B.E./B.Tech. Degree Examination, June/July 2024
Database Management $ystems
Time: 3 hrs. Max. Marks: 100
Note:2. 1.M:
Answer any FIVEfull questions, chodsing ONE full question from euch module.
Marks,L: Bloom's level, C: Course outcomes.
Module-1 M L
Q.1 a. Define database. Elaborate component modules of DBMS and their 10 L2 CO1
interactions.
b. Describe the three-schema architecture. Why do we need mappings among 06 L2 CO1
schema levels?
C.
Explain the diffrence between logical and physical data independence. 04 L2 CO1
OR
Q.2 a. Draw an ER diagram for an COMPANY dâtabase with employee, 10 L3 CO3
department, project as strong entities and dependent as weak entity. Specify
the constraints, relationshipsand ratios in the ER diagram.
b. Define the following terms with example for each using ER notations: 10 L3 CO3
Entity, attribute, composite attribute, multivalued attribute, participation
role.
Module -2
Q.3 a. Discuss the update operations and dealing with constraint violations with 08 L2 C02
s:.itable examples.
b. | Ilestrate the relationa! algebra ozerators wit:, exan1pies or selet ánd | 06| L2 C02
project operation.
C. Discuss the characteristics of relations that make them different from 06 L2 CO2
ordinary table and files.
OR
Q.4 a.
Perform (i) Student U instructor (i) Studento Instructor 04 L3 C02
(ii) Student- Instructor (iv) Instructor - Student on the following tables:
Student Instructor
Fname Lname Fname Lname
Susan Yao John Smith
Ramesh Shah Ricardo Browne
Johnny Kohler Susan Mao
Barbara Jones Prancis Johnson
Amy Ford Ramesh Shah
Jimmy Wang
Gilbert
Ernest
D. Consider the following relational database schema and write the queries in 10| L3 CO2
relational algebra expressions:
EMP(Eno, Ename, Salary, Address, Phone, DNo)
DEPT(DNo, Dname, DLoc, MgrEno)
DEPENDENT(Eno, Dep Name, Dreiat ion,Dage)
() List all theemployces who reside in 'Belagavi'.
(1) List alithe employces whocarn salary between 30000 and 40000
(iii) List allthe employees whowork for the 'Sales' department
(iv) List allthe cmployees who have at least one daughter
(V)List the department names along with the names of the managers
1of3
Consider the two tables T,and
TT shown below: 1:27p BCS4N
96\L3\Co2
C.
T
T:
|ABC
P 0R
ao
) .
10 a 5 10 | b 6
15 b 25 c 3
25 a 10 b
DT
Show the results of the following operations:
()
(i) T;
(ii) TË T,.P=T,,A AND T,,R=T.C)
Module -3
Q.5 a.
Discuss the informaldesign guidelines for relation schema design. 08 L2
b. Define 1NF, 2NF, and 3NE with examples. 3 CO4
06 L2 CO4
C Write the syntax for INSERT, UPDATE and DELETE statements in SQL 06 L2
and explain with suitable examples. CO3
OR
Q.6 a. Discuss insertion, deletion and modification
considered bad? Illustrate with examples. anomalies. Why are they| 10 L2 CO3
b Illustrate the following with suitable examples:
() 10 L2
Datatypes in SQL CO3
(ii) Substring Pattern Matching in SQL?
Q.7 2.
Consider the following relations:,Module-4
Student(Snum, Sname, Branh, level, age) 10 L3 CO3
Class(Cname, meer at, roøm, fid,
Enrolled(Snum, Cname)
Faculty(fid, fname, deptid)
Write the following queries in
of the answers. SQL. No dupliates should be printed in any
() Find the names of all Juniors
class taught by I. Teach,, (level = JR) who ©re enrolled in a
(i) Pind the names ofall
have five or more studentsclasses that eithef meet in
enrolled. room R128 or
(ii) For all levels except
students for that level.JR, print the level and rthe average age of
iv) For each façúlty
member that has taught classes
R128, print the faculty only in room
member' s name and the total
classes she or he has taught, number of
(v) Find the names of students
b. What do understánd not
by correlated Nestedenrolled in any class.
suitable example. Queries in SQL? Explain with
Discuss the ACID properties of a 04 L2 cO3
database transaction.
OR 06 L2 C04
a.
What are the views in SQL?
b. In SQL, write the usage Explain with examples.
of GROUP BY and
examples. HAVING clauses with suitable 0604 L2
L3 CO5
C.
Discuss the types of problems that may CO3
concurrently. encounter with transactions that run
10 L2 COs
|2 of3
gorsOA
BCS403
Module -5
What is the two phase locking protocol? How does it Guarantee 06 L2 COS
9.
serializability.
Describe the wait-die and wound-wait protoco Is for deadlock prevention. 08 L2 COS
06 L2 CO3
Tist and explain the four major categories of NOSQL system.
OR
CO
Q.10
What is Multiple Granularity locking? How is it implemented using 10 L2
intension locks? Explain.
06 L2 CO4
piscuss the following MongoDB CRUD operations with their formats:
(i) Insert (ii) Delete (ii) Read
Briefly discuss about Neo4j data model. 04 L2 CO4
C.
01-09-202401:32:30pm
TU-01
DT
-
DT
-
DT
-
D T
-
DT
DT
-
- DT
D T
-
- D T
DT
-
DT
-
DT
-
DT
-
DT
3 of 3
-