CDCSC18 2024-1
CDCSC18 2024-1
Note: Attempt all questions in the given order only. Missing data/information (if any), maybe
..
~ A3: “Select EmpiD, Name, Loc, Dept From EMP Where Loc
A4: “Select EmpID, Name, Loc, Dept from EMP Where Loc ‘MPLS’;”
2c Let AP={API AP5} be a set of applications, A {Al
= A5} be a set of attributes, and S {Sl, S2, S3, 4 C02
S4} be a set of sites. The given matrices in the table describe the attribute usage values and the application
access frequencies. Assume that refi(APk) = 1 for all APk and Si and that Al is the key attribute. Use the
bond energy and vertical partitioning algorithms to obtain a vertical fragmentation of the set of attributes
in A.
Attribute Uses Values Access Frequency
~ Q/A
I) Write a nested query on Use relation account to find, fee cads israncis wins netne starting witlt B, all
acceunte with the nsaximum balance at the branch.
ii) Rewrite the nreceding ones-v. witlsottt uaing a neseed subqtterv; in other words. dacorrelote the
,~ Attempt sny 2 psrta afthe following
Sa It, ~(W,(x), WaLt), E3(x), Rt(x) WaLt), Ra(y), )?3(z), R2(x)]
H3 [Rs(z), RaCy), WaLt), RiCa), Wt(x), R3~x), WaLt), Rt (-x))
H3 =(Ra(z), WaLt), W~(y), .RtCx), R3(x), Ra(z), I?3(y), Ws (x)}
H4 =a(R,(z), Wa(,x), Wa(y), Wi fr), lIt (x), t?a(x). Raft). R3(y)]
Observing above histories ofdifl’crcnt sites, answer tise following wilh properjtustiticatien
I) Which ofthe following hiatories are conflict equivalent [2 Marks]
if) Which of the above hiatories Hi -‘24 are sorialirable? r2 Markel
2L’ Attempt ally 2 parts of the following — Sb Daing suitable hansaction processing examples on tnulliple sites, explaist lite foliowitsg for a diatributed
3a i. Assume tisat as a DBA you need to perform list join of two relations B. and S over attribute A, stored at 4 003 DBMS envirenment,
sites I and 2, respectively. Write iso 3 rules to compute the same by replacing one or both relations with a i) Working ofstriet 2 phase cnnsmit (2PC) protocol and titatesratssp based prsiocoi. (2 Marks)
~ semijoin. Also write the condition that assures the claim that sctsaijoin is better as cotstpareel to the natural — ii) Hierarchical and distril,tsted deadlock detectiott. [2 Mtrksl —
• join in this case. (3 Marks) Sc Briefly explain the Following,
II. Illustrate else rotnparison ofloin vs scmuioin [I Marki —
I) ACID preparlies for distributed databases (2 Marks) U) Lost Update and Inconsistent Retrievals [2
3b Assume that relation PROJ ofeho sstnple database is horizontally fragnsenled as follows: 4 003 Marks]
?ROJt O’rsoc’n-(PROJ)
PROJ2 = Upssoa’pa.(PROJ)
Furtisennort, relation ASO is indirectly fragtssented end rclatiott EMP is vertically fragmented Ca:
A501 ASG kasto PROJ1 EMPt = flzsso,esqswsss(EMP)
SIt, a ate, S
4c Conoider the following bank database, where the primary keys are underlined. 4 004
brauch(~pag~J~, bratselt city, assets) (2+2)
cuatomtr fctiatonser ID, customer nttsse, customer sheet, customer city)
loan fioan.ijgmbg~, brands tame, amounl)
borrower (customer ID, loan netmber)
account (account tttmber, brands name, balance)
depositor (custotaer ID, aceoutst sunsher)
2.