Dbms R, JUNE 2022
Dbms R, JUNE 2022
RegNo.: t;
!.
:;
PART A
(Answer all questions; each question carries 3 morks) Marks
2 Draw neat labelled diagram of three schema architecture and briefly describe 3
each level
Write briefly about any three relational database integrity constraints.
a
J 3
6 A file has r :20000 STUDENT records of fixed length. Each record has the 3
following fields: NAME (30 bytes), SSN (9 bytes), ADDRESS (40 bytes),
PHONE(9 bytes), BIRTHDATE (8 bytes), GENDER (1 byte), DEPTID (4
bytes), CLASSCODE (4 bytes), and PROGID (3 bytes). An additional byte is
used as a deletion marker. The file is stored on the disk with block size 8:512
bytes,
a) Calculate the record size R in bytes.
b) Calculate the blocking factor bfr and the number of file blocks b assuming an
I unspanned organization.
c)
Calculate the average time it takes to find a record by doing a linear search
7 Define Boyce.Godd normal form. How does it differ from 3NF? 3
PART B
(Answer onefull questionfrom each module, eoch question carries 14 marks)
Module -1
11 a) Differentiate between two-tier and three-tier client-server database architecture
with the help of qeat labelled diagrams.
Page 1 of4
02flx1csT204052101
o Products have a model number and a type. Each product is made by one
manufacturer, and different manufacturers may have different products with
the same model number. However, you may assume that no manufacturer
would have two products with the same model number
o Customers are identified by their unique social security number. They have
email addresses, and physical addresses. Several customers may live at the
same (physical) address, but we assume that no two customers have the same
email address
o An order has a unique order number, and a date. An order is placed by one
customer. For each order, there are one or more products ordered, and there
is a quantity for each product on the order.
Page 2 of4
0200(rcsT204052101
Module -2
13 a) Consider the following scltma, 8
iii) Find the IDs of suppliers who supply some red or green part
iv) Find the names of suppliers who supply some red part
b) Differentiate between the following SQL statements 6
carried out.
ii) Modifu tfre i"aUfe Employee to include a new column "years-of-exp"
iv) Increment the salary of employees whose salary is less than Rs25000 by 5%.
*
b) Illustrate any three ways of using lNSERf'statement in SQL. 6
Module -3
15 a) For the relation schema below, give an expression in SQL for each of the queries 8
that follows:
employee (ID person_name, street, city)
Page 3 of4
02fitocsT204052101
examples
16 a) What is multi-level indexing? How does it improve the efficiency of searching 8
an index file?
b) Insert the following keys, in the order given, into a B -tree of order 3: 6
dependencies A + B, B -- C, C
- D, D + B. Determine whether the
decomposition ofR into Rl ( A, B ), R2 ( B, C ) and R3 ( B, D ) is lossless or
I
lossy. Write the complete steps.
b) What is dependency preservation property for decomposition? Why is it 8
"-
important?
Module -5
o '
D a) Explain briefly the ACID propertieiofftransaction. 8
b) What are the main characteristics of NOSQL systems in the areas related to data 6
models and query languages?
* **:f *:f
Page 4 of4