@vtucode - In-Merge Previous Year Paper DBMS
@vtucode - In-Merge Previous Year Paper DBMS
15CS53
USN
Note: Answer any FIVE full questions, choosing ONE full question from each module.
d
''=
o
o. I a.DefineDBMS.DiscussttreadvantaWsffioverthetraditionalfilesystem.(08Marks)
E b. Explain the component modulus.gfpBMS and their interaction, with the help of a diagram.
d (08 Marks)
:
(J
d
o OR
,:'l:;r'iil
ox 2 a. Define the following witft'dh example :
-\z > D Weak entity typ. 7. ii) Participation constiaints
*'n ii) Cardinality ra.tio..*' iv) Recursive relationship. (08 Marks)
-oo ll
coo b. Draw an ER diAgrhrm' of Banking system taking into account atleast five entities, indicate all
.=N
(d+ keys, constraints *frd assumptions that are made. (08 Marks)
im
H()
oC Module-2
EE
a. What is"iiL,.
-O
6=
b. Consider the following Movie database :
o()
Movie (Title . director. Myear.
.''ri
Rating)
_L
cgO Actors (Actor , Aage) ..-'
o0E Acts (Actor, title)
-o
>9
Directors (Director, dhge)
26
Write the following queries in relationalalgebra on the database given ;
!(d
3o i) Find movi{g+made by "Hanson" after 1997.
ts ii) Find all actors and directors.
o-a
tro ili; ninA "Co[n's" movie with'@,tc Dormand".
oi iv) Find (director, actor) pair;wlere the director is younger than the actor. (08 Marks)
D--
ao
@,E rii" . OR
4 a. ,Qiscuss insulation , deietioh and modification anomalies. Why are they considered bad?
LO
6.Y
>': "r.,),*,[ftistrate with an e*araple.
'?: (08 Marks)
oo-
E Ol) b. '";zWrite the SQL querries for the following relational schema ;
o= Sailors (Sid ,,Snarne , Rating, Age)
o-B
i<o
VL
Boats (Bid,dflame, color) .: ,
o
Reserve (Sjd, Bid , Day)
\J<
-: ..i
i) Retrieve the Sailor's name who have reserved red and green boat.
o iD Retrieve the no : of boats which are not reserved.
z iiD Retrieve the Sailors name who have reserved boat number 103.
(! iv) Retrieve the Sailors name who have reserved all boats. (08 Marks)
L
o- la.
E Module-3
5 a. How are triggeis,and assertions d"fin-.d
in SqL? Explain. (08 Marks)
b. How are view.s created and dropped? Explain how the views are implemented and updated.
.tj1-
(08 Marks)
I of2
,tl,:i
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
.sN.- 15CS53
_ftw
,,, 4":f
OR 7
''t**":i'"'B
6 a. Explain the Single - tier and Client - server arch ite@},re;*with a neat diagram. (08 Marks)
b. Explain the following :
i) Embedded SQL ii) Database st (08 Marks)
Mod{ft*e-4 .,& r
7 a. Which Normal form is based on the d&fp:i o f transitive funct i^qffinend ency? Explain
the same rvith an example. (08 Marks)
b. What is the need for normal ider the relation : iru
Pnumber
- | Pnams,Plocati on) '+t*,
'
8a.
..i
I
What is Funptional Dependency? Find the''lfhinim al cover using the minimal cover algorithm
&/i wwr
,
'
"i' .,\
(08 Marks)
l;=ffi*n- ,rr,r.ffi
,,i1o.i'n,.+'
.N
;,t'+ "
\lil$i,,ir
t'
?trrJ<**
""Sr,r,,,.11''
),,1;,-
' r'i-gd'
"g
lli
2 of2
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
ttal*
..
tl
.=f'^i"rtf
-" (
"L,h - T
,l
USN 17CS53
* t.",
(E0
Note that the party details must also be taken care in the design. (12 Marks)
o!o
botr
cOd Module-2
BE 3a. Define the following terms : i) Key ii) Super key iii) Candidate key
6r
iv) Prinrary koy v) Foreign key, (05 Marks)
']3a) b. Enumerate the'steps involved in coflverting the ER constructs to corresponding relational
5jr
tables. (07 Marks)
o-X c. Consider,ing the schema
o.e
oj Sailors Gid-, sname , rating , age)
9E Boats (b:id, bname , color)
6o
otE Reseives (sid , bid , dayj,,,
EO 'Wgite relational algebraic queries for the following :
>\ q-
coo
r) Find names of sailors who have reserved boat # 103"
cc0
.-E
6= ii) Find names'of sailors who have reserved a red boat.
qo iii) Find nanaes of sailors who have reserved a red or green boat.
o iv) Find na-mps of sailors who have reserved all boats. (08 Marks)
cr<
-
c.l OR
o 4a. Explain with examples , the basic constraints that can be specitied when a database table is
z created in SQL. (12 Marks)
P
b. Write SQL queries for the following relational schema :
o
o. CUSTOMER GQ , CNAME , EMAIL , ADDR , PHONE)
ITEM (tTEM_Nq', IrgU*UaUE, , PRICE , BRAND)
SALES (CID, ITEM:NO, # ITEMS, AMOUNT, SALE_DATE)
SUPPLIER (SID , SNAME , SPHONE , SADDR)
SUPPLY GID , ITEM:NO , SUPPLY-DATE , QTY)
."i 1of3
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
;, .,
17CS53
Modulel3
5 a. What are assertions and triggers in SQL?rWrite a SQL program to Cteate an assertion to
specily the constraint that the salary of an employee must not be greater than the salary of
the department. The ernployee works for in the COMPANY database. (07 Marks)
b. Write a trigger in SQL to call a stored procedure INFORM,SUPERVISOR( ) whenever a
new record is inserted or updated, check whether an employee's salary is greater than the
salary of his or her direct supervisor in the COMPANY database (07 Marks)
c. [Iow do you create a view in S QL? Give examples Can you update a view tab le? If yes,
how? If not, why not? Disouss. (06 Marks)
oR,
6a. With real world examples, explain the following r) JDBC ii)
Correlated queries
iii) Stored Procedure iv) Schema change statements in SQL. (12 Marks)
b. Write a complete high level language program (in Java or C; to display the rows of a
customer table created in oracle having < custid , custname , balance > columns with
ernbedded SQL. (08 Marks)
Module-4
la. What are the problenrs caused by insertion , updation and deletion ano?aalies? Discuss rvith
an example. (06 Marks)
b. For the below *eiven relation R (A, B, C, D, E) and its instance , check whether the FDs
given hold or not. Give reasons.
i) A ---+ B lt B ---+ C iii)
D--+ E iv) CD -.+ E (04 Marks)
A B C D E
.,
At bi Cr dr er
&r b: Cr dr er
&Z b: Cr d: €3
&z br d: Br
C3
c Using the minin'ral cover,algorithm, find the minimal cover for the following FDs
p= {AB -- C, A--* D, BD --+C, D--*BG,'AE-rF }. (10 Marks)
OR
8 a. Norrnalize tlre below relation upto 3NF
Motlule Dept Lecturer Text
MI DI LI TI
MI DI LI T2
M2 DI LI TI
M2 DI L1 T3
M3 D1 L2 T4
M4 D2 L3 TI
M4 D2 L3 T5
M5 D2 L4 T6
(10 Marks)
2 of 3
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
fa:ra_
., 7CS 53
dlt
.
""r
L.t1'
Modqlq5
9 a. Describe the database inconsistency problems : Lost update , dirty read and blind write.
(06 Marks)
b. With a neat diagram, explain the various Biqltes of a transaction execution. (07 Marks)
c. Check whether the below schedule is conflict serializable or not.
{b2 . r2(X) , bl , rl(X), wl(X) , rl(Yl ,, wl(Y) , w2(X) , el, cl,e2, c2l. (07 Marks)
O*
10 a. What is 2PL? Explain with anexa*r,., (06 Marks)
b. How do you detect a deadlock during concunent transaction execution? (06 Marks)
c. Explain the various database recovery techniques, wlth examples. (08 Marks)
*****
t:: i.,.
I
t.....
i: .
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi - 590008
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi - 590008
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi - 590008
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi - 590008
bgc
%
s Library
USN
ffiffi, I
i
i
'l
15CS53
, 'tr :''
Time: 3 hrs. 4 , Max. Marks: 80
o I
I
o
6
Note: Answer any FIVE full questlb4s,:choosing ONE full q!le{$an.front eoch module.
o. ii
d
E
! ,,r. t. 1
oi(;.]'
-€
*ll
2 a. Explain r*;1f1,plock diagranr the different phases of database design. (08 Marks)
.=N
6=f
.ER-Diagram
b. Draw an of movie datdbasp. Assume your ow& entities (nrinimum 4) atlributes
-CO
tso ancl relationships. j ,i.+t
l' (o8lllarks)
!a
EA rl i
e=
):
3n Module-2 '''' , it , I
:
;
= :'l
3.'
4 a. Discusl'the various types of set theory operations with exanrple (08 tllarks)
a:
6c b. Consider the two tables, show the results oft[e fgllorving
D!
qtE
Tr ;.. T:
=e
== 1,,
'!:1.
A BC P a R
a5.
:
"oc
coo
l0 t0 b 6
o=
po
.l
,!
l5 b,8 25 c J
tr> 25 a' ',6 10 b 5
,)
=D
ci
o< i)
-it ><L Tn ,l
ii) TtYIL
r a.l -fr'B=T;L'
D
T,.A=i;.,,
z
E
c-
iii) -i, txl '?._
iv) Tr - T:
E 0,+L'1JP lac,r> (7,. C =lll)
(08 Nlarks)
I of 3
I
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
, ,t'1 15CS53
Module-3 ii
5a. How does SQL implement the entity integrity constraihts of the relational data model?
Explain with an exanrple. (04 tvlarks)
b. Discuss: i; Shared va'iables ii) Communicaticin,variables. (06 Marks)
c. Explain with examplt:s in SQL:
i) Drop command i,,r ,
,,,.t'oRi ,:!
6 a. With program segment, expl4in furr{eving of tuples rvith emhdiled SQL in C. (06 Marks)
b. Consider the fbllowirrg tableS: ,,t ,.
b. Explain any two infcrmiiliqiiality measures ernployed tbr a relation schema design.
c. Given belor.r.'are tlvc siis of pOs fbr a relation R (A, B, C, D,E).,Are they equiva,#lr*"*'
i) A+8, Ap'i-+C, D-+AC', D-+ll i
, ,.:.,: ,,,ri, oR :
8 a. What,@ ydu mean by multivalr#ri'dependency? Explain the 4NF rvith example. (06 Marks)
b. Suggest and explain three Qifferent techniques to achieve INF using suitable example.
Salesman_No -+ Ccmmission
i) ls tlris relation in LNF;'ANF or 3NF? Why,or why not?
ii) How rvould yr,u nbtirialize this contpletely? (06 Marks)
t1..
"-4
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
(,
i\
:*0
i! t5cs53
c Consider the three transactions Tr. T: and Tr ands" ,-Sl given belorv
Determine whether each schedule is serializable or no lE is serializable rvrite
t:
down the equivalent serial schedule (S) *,.
b. what is trvo phase loclqing? Describe with the rrerp.gtaff example. [3: Xfffi]
c. What is Deadlock? Co$sider the fbllowing sequences of actiorrs listed in the oder they are'
submitted to the DB'Ifid.
Sequence Sl: RltA);''W:(B); Rr(B); Rr(C)rjWdC); W+(B): W.,(A)
Drarv waits-br giiirh in case of Deadlock eiluation. (06 Marks)
+,k*'r'F
, I :'
'i
t
f
':t
4)
ri
.&,
I ri
ltt
3 of3
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
10CS54
USN I I I I I I I I I I I
Fifth Semester B.E. Degree Examination, June/July 2017
Database Management Systems
Note: Answer any FIVE full questions, selecting at/east TWO questions from each part.
PART-A
1 a. Discuss the main characteristics of the database approach. How does it differ from
traditional file system? (08 Marks)
b. With a neat diagram, explain the component modules of DBMS and their interactions.
(08 Marks)
c. Define i) Snapshot ii) Metadata iii) Intention iv) Database. (04 Mark5)
2 a. Design an ER diagram for an employee database with atleast four entities considering all the
constraints. (08 l\1arks)
b. What are the structural constraints on a relationship type? Explain with examples. (04 Marks)
c. Define i) Primary key ii) Weak entity type iii) Candidate key iv) Recursive
relationship with an example. (08 Marks)
4 a. Explain the different constraints that can be applied during table creation in SQL with
example. (06 Marks)
b. Explain how group by clause works. What is the difference between where and having
clause. (04 Marks)
c. Consider the following schema and write the SQL queries :
Emp (SSN, name, Addr, Sal, Sex, Ono)
2,l Dep (Ono, Dname, Mgrssn)
0
z DeptLoCN(Dno, DLocn)
§ Proj (Pno, Pname, Plocn, Ono)
t:::
0
0..
Workson (SSN, Pno, Nohrs)
.§ Dependent (SSN, Deptname, Depntsex, Depnt Relationship)
i) Retrieve the managemame with atleast one dependent.
ii) Retrieve the Pno, Pname, no of hrs works done on each project.
iii) Retrieve the Pname which are controlled by 'Research' dept.
iv) Retrieve employee name who works for dept no 10 and have a daughter.
v) Retrieve the employee name who work on any project that Kumar works. (IO Marks)
I of2
. j_ ~:~·)~.)It;~}~.}· ! _·,
:~;: "ti.·· .. )d;.:: r·:· »?: ;/ .:· }
.. -.~\
\~~~::·_-· ~;_.~, '-~-~~~-~-:~'
""'""'""·-•'-"
'I',:
IOCSS..J
PART-B
5 a. How is view created and dropped? What problems are associated with updating views?
(08 Marks)
b. How are triggers and assertions defined in SQL? Explain. (06 Marks)
c. Explain the concept of Stored procedure in brief. (06 Marks)
6 a. State the infom1al guidelines for relational schema design. (06 Marks)
b. Define First, Second and Third normal forms by taking an example. (08 Marks)
c. What are the inference rules on FDs? How they are useful? Explain with examples.
(06 Marks)
*****
2 of2