Sie sind auf Seite 1von 3

Registration

No.: 7. What are the disadvantages of index sequential files? (Knowledge –


D1).(U-4) (3 mins)
SRM UNIVERSITY HARYANA 8 Consider a B+-tree in which the maximum number of keys in a node
Year /Semester – IIIrd / VI Sem (Session: 2018) is 5. Find minimum number of keys in any non-root node? ( Evaluation-
D2) (U-4) (3 mins)
INTERNAL EXAMINATION-II
9. Design entity relationship model of doctor and Patient. (Synthesis-
B. Tech. CSE D1) (U-1) (3 mins)
10 Why we cannot use WHERE clause with aggregate functions like
Subject Code: CS 0304 Duration: 3 hrs HAVING ? ( Analysis-D2) (U-3) (3 mins)
Subject Name: DBMS Max. Marks:100

Note: All questions are compulsory. Marks as indicated against questions. Part B: (16*5)
Part A: Attempt all questions. (10*2) UNIT-1
11 a) You opened a new Database development firm. A local petty –
1 List names of two pitfalls (problem) of lock-based protocols? shopkeeper approaches you for development of DBMS for his business,
(Knowledge –D1). (U-5) (3 mins)
his plea being that he also wants to be computer savvy and wants to
2.Describe view serializability? (Understanding –D1) (U-5) (3 mins)
3.Explain primary, foreign, candidate and foreign key ? control his business through DBMS, his annual turnover being Rs
(Understanding-D1) (U-1) (3 mins) 1,00,000 per annuam.
4. Solve the following relation R and set of functional dependencies F. Design a block diagram for creation of database that consist DBMS
R(ABCGHI) F = {A  B, A  C, CG  H, CG  I, B  H} component modules, DBMS utilities and DBMS interfaces. Elaborate
Find out the closure of functional dependencies F+. (Application-D2)
briefly all major steps that you would take in setting up a database for a
(U-2) (3 mins)
particular enterprise (Synthesis-D3 )[30 mins]
5. Consider a relation R as follows R( title, Performer, style, price, label,
producer). The FD are: (U-2) (3 mins) OR
titlelabel, style, styleprice, performerproducer
What is the highest normal form of R. (Application-D3) (3 mins)
6.How trigger has been implemented in PL/SQL?( Analysis-D1)(U-3)
b) Construct a clean and concise E-R diagram for keeping track of the Work (company_name, city)
exploits of your favourite sports team. You should store the matches Manages ((person_name, manager_name)
played, the scores in each match, the players in each match and
1) Write the names of all employees who work for First Bank
individual player statistics for each match. Coperation.
2) Write the names and cities of residence of all employees who work
List your assumptions and clearly indicate the cardinality mappings as
for First Bank Corporation.
well as any role indicators in your ER diagram .Convert this ER 3) Write the names, street address,and cities of residence of all
diagram into relational table.[ 8 marks] employees who work for First Bank Corporation and earn more than
Also Extend the E-R diagram to track the same information for all teams $10,000 per annum.
in a league. State any assumptions you make about the additional 4)Write the names of all employees in this database who live in the
requirements. [8 marks] (Synthesis-D3) [30 mins] same city as the comp any for which they work. [30 mins]

UNIT-2 UNIT-3
13 a) Consider following schema
12. a).i) Compare BCNF with 3NF with proper example and explain Employee (employee_code, emp_name street, city, dept_name )
Why 4NF is more desirable than BCNF.[8 marks] Department (dept_code, dept_name, floor)
Create tables for the above schema, and insert some rows to populate
ii) What are the anomolies if proper design of database is not carried them.
out? Illustrate with examples for each type.[8 marks]
((Analysis-D2) [30 mins] i) Write SQL Query for following commands and also show the result
of each operation.

INSERT , DELETE , TRUNC, ALTER [8 marks]. (Application-D2)


OR
b) Consider following schema and write relational Algebra expression ii) Write any four SQL join operations to join two tables of Employee
for following queries ((Application-D3) and Department. [8 marks] [30 mins]
Employee (person_name, street, city)
Company(person_name, company_name, salary) OR
UNIT-5

b) Sketch the architecture of JDBC Connection to database and also 15.a )i) Why do we emphasize conflict serizability rather than view
write down the JAVA code explaining the concept of connectivity with serializability . Justify your answer. [8 marks] (Evaluation –D3)
database. .(Application-D2) [30 mins]
ii) Check with help of precedence graph whether this schedule is
conflict serializable or not.[8 marks] [30 mins]
R1(X),R2(Y),R3(Z),W2(Y),W2(X),W1(Z),W3(Y),W2(X)

UNIT-4 OR

b) For each of the following protocols, describe aspects of practical


applications that would lead you to suggest using the protocol and
14. a) Construct B+ tree for following set of Key values: aspects that would suggest not using the protocol. ( Analysis-D2) [30
(2, 3,5, 7, 11, 17,19,23, 29, 31) mins]
Show the steps to form B+ trees after performing insertion and deletion
operation( Synthesis-D3) [30 mins] i)Two phase locking protocol
ii) validation based protocol.
OR

b) i) Explain in detail about internal hashing techniques[8 marks]


ii) Discuss in detail about cluster and multilevel Indexes. [8 marks]
. (Knowledge-D2) [30 mins]

Das könnte Ihnen auch gefallen