21CS53
21CS53
USN
RV COLLEGE OF ENGINEERING®
(An Autonomous Institution Affiliated to VTU)
V Semester B. E. Examinations April/May -2024
Introduction to Database Systems
Common to CSE / ISE
Time: 03 Hours Maximum Marks: 100
Instructions to candidates:
1. Answer all questions from Part A. Part A questions should be answered in first
three pages of the answer book only.
2. Answer FIVE full questions from Part B. In Part B question number 2 is
compulsory. Answer any one full question from 3 and 4, 5 and 6, 7 and 8, 9 and
10.
PART-A M BT CO
PART-B
3 a For a Relation R, with tuples 𝑡1, 𝑡2, 𝑡3…etc. What are the types of
constraints violated by the insert, delete and update operations?.
Explain. 08 2 3
b
OR
4 a Give the approaches for mapping the following relationship types
in ER to Schema
i) Mapping of Binary 1:1 Relationship Types
ii) Mapping of Binary 1:N Relationship Types 08 2 3
b For the Schema specified in the Fig 3b, give the following
relational algebraic expressions:
i) Retrieve the details of the manager of each department using
Join operation. Display the Department name, Last name
and First name of every manager retrieved.
ii) Retrieve the names of employees who work on all the
projects that ‘John Smith’ works on using Division operation 08 3 2
6 a Using the database in Fig 3b write SQL queries that satisfies the
following statements:
i) Find the sum of the salaries of all employees, the maximum
salary, the minimum salary and the average salary. (Use
Aggregate functions)
Display appropriate column names for the retrieved data.
ii) For each project on which more than two employees work,
retrieve the project number, the project name, and the
number of employees who work on the project. (Use GROUP
BY and HAVING clause) 08 3 3
b Consider a relational schema R with attributes 𝐴, 𝐵, 𝐶, 𝐷, 𝐸 and
set of functional dependencies 𝐴®𝐶𝐷, 𝐵®𝐶𝐸, 𝐸®𝐵.
i) Give a lossless-join decomposition of R into BCNF.
ii) Give a lossless-join decomposition of R into 3NF preserving
FD 08 3 3
OR
OR