Itt206 Database Management Systems, July 2021
Itt206 Database Management Systems, July 2021
Itt206 Database Management Systems, July 2021
c_oLri
02000ITT206052t04
Reg No.:
column.
ii. Find the sum of the salaries of all employees, the maximum salary, the
minimum salary, and the average salary.
6 What are the different types of SQL Join? (3)
7 State first normal form. (3)
8 Why are some functional dependencies called trivial? (3)
9 List the different types of transaction failures for which recovery is required. (3)
t0 Define NoSQL database. Give an example. (3)
PART B
(Answer one fall question from each module, each question csrries 14 marks)
Module -1
l l a) Design an E-R diagram for keeping track of the scoring statistics of your (6)
favourite sports team. You should store the matches played, the scores in each
match, the players in each match, and individual player scoring statistics for each
match. Summary statistics should be modelled as derived attributes with an
s
explanation as to how they are computed.
b) Illustrate three schema architecture and explain how it helps to achieve data (8)
independence.
Page 1 of4
12 a)
Discuss the different types of user-friendly DBMS interfaces and the types of Q)
users who typically use each.
b) consider a University database for the scheduling of classrooms for final (7)
exams.This database could be modelled with details as:
. course has name, department, and c-number
o section for each course has s-number and enrollment
. roorn has r-number, capacity, and building name
. exam has exam-id and time
Module -2
13 a) Consider the following database schema with three relations: (10)
Suppl iers(slD, sNarne, address)
q@>
Page2 of 4
Downloaded
e:iEr. j!1
from
.
Ktunotes.in
a!ffi
02000ITT206052104
Module -3
15 a) consider the tabre student (stud_code, stud_name,
subject, marks). write sel (4)
procedure to display all records
of Student table whose marks are greater than
\ 70 and count all the table rows.
b) Define views in sel. write sampre SeL queries to create a view, update view (r0)
and drop view.
16 a) consider the foilowing rerations which are
part of the University database. (g)
Instructor ( id, name, dept_name, salary)
Course &eusg._!_d, titl e, dept_name,
cred its )
section(cogsq-id.sec id.semest,buirding,room-number,time's|ot
id).
Write SQL queries for the given questions:
i) Find the titres of courses in the IT department
that have 4 credits.
ii) Find all instructors earning the highest
salary.
iii) Increase the sarary of each instructor
in the IT department by r0%.
iv) Delete all courses that have never been
offered.
b) Consider the bank database.
(6)
account (qaqaul!q!q!9r,
branch_name, balance
)
depositor (cuslomer name. account
number)
customer (customer name, customer_street,
customer_city)
write an sQL trigger to carry out the foilowing
action: on derete of an account,
for each customer-owner of the account,
check if the owner has any remaining
accounts, and if she does not, derete
her from the depositor reration.
Module -4
l7 a) Decompose the reration clASS(course_id,
titre, dept_name, credits, sec_id, (8)
semester. year, building, room-number,
capacity, time' srot_id) into murtipre
relations so that the resultant relations
are in BCNF.
Page 3 of 4
b), a, stt sf functiorul dependen*cs {FDs) for the relatisn sch€tr}s R{A,B,C,D) (6)
,Give
18 a) With examph &crihe the inss$ion, updation and deletiair. arsnrsli€s, in (9)
relational database fu ign.
b) With example, explain lossless decomposition. (5)
ldodule -5
- 19 .e) Coasider a database trcnsction to'ftnsfer 'x' doll*rs from Account A to (10)
l"
r,
Peg€* of4