SSZG518 (EC-3 Regular)
Second Semester 2014-2015
Q4(b) she
Assume an XML docume
company which has one o,
empname , one
The department
() For the abo
nt (company.xml) with following structure. Root element is
mpi at 0% employee. clements. Each employee element has one
pelted * more empphone elements, and one department element.
Ape ada: dno (attribute) and one sub element dname.
For each emplorag 1 cument, write XQuery expression to do the following
theatres ployee in ‘HR’ department return the empname, empid without tags,
but enclosed in a outer tag ~ “EMP_HR”.
(i) Give the DID for the above XML file. (2+3=5]
Q55 (a)
(1) Brief on significance of flow control in database Security. (2)
(i) With a simple example brief on denormalization concept used during the database
tuning phase,
Note: For both (i) and (ii) give answer using bulleted points.
Q.5(b) Look at the following partial schedule involving four transactions T1, T2, T3, and T4,
Partial Schedule: T3_lock_X(A); T2_lock_X(B); T3_R(A); T4_lock_S(B); T2_R(B);
T3_W(A); T4_R(B); _T2_lock_ X(C);_ T2_R(A); Ti_lock_S(C), TI_R(C);
‘T3 lock S(B); T1_lock_X(B); T4 lock _X(C);
Now check, if this leads to a deadlock condition, with the help of a wait-for graph.
Note: T2_lock_S(A)~means T2 locks data item A in Share mode.
T2lock_X(A) ~means T2 locks data item A in Exclusive mode.
T4_R(B)- means T4 reads data item B
T3_W(A) - means T3 writes data item A
Complete working is required. Is
eee