Documente Academic
Documente Profesional
Documente Cultură
: SS ZG518
: DATABASE DESIGN & APPLICATIONS
: Open Book
: 50%
: 3 Hours
: 10/11/2013 (AN)
No. of Pages
=2
No. of Questions = 5
Please follow all the Instructions to Candidates given on the cover page of the answer book.
All parts of a question should be answered consecutively. Each answer should start from a fresh page.
Assumptions made if any, should be stated clearly at the beginning of your answer.
Q.1 (a)
Assume we have three entity types E1, E2, and E3, with following details,
relationships, and constraints.
(i)
Attributes are: E1(a, b, c); E2(x, y, z); and E3(p, q, r, s). Attributes a and p are
the keys for entity types E1 and E3 respectively.
(ii)
E1 and E3 are involved in a relationship R which has an attribute m. In R, each
instance of E1 is associated with zero or more instances of E3. But every instance
of E3 is associated with exactly one instance (min and max is one) of E1.
(iii)
E2 is a weak entity type and its owner is E3. Attribute y is partial key of E2. The
relationship between E2 and E3 is T, and each instance of E2 is associated with
eaxctly one instance of E3, and each instance of E3 can have association with one
or more E2 instances.
Now, draw the ER diagram for the above description. Indicate- cardinality, keys,
attributes, min-max, and participation constraints for entity-types involved in the
relationships.
[5]
Q.1 (b)
[5]
Page 1 of 2
Page 2
Q.3. Consider a disk with block size 512 bytes. A block pointer p is 7 bytes long. Assume an
ordered file with 3,18,000 student records (fixed length) stored on disk. Each record has
following fields- name(30 bytes), studentID(8 bytes), branch(6 bytes), address(40 bytes),
phone(9 bytes), CGPA(4 bytes). If the file is ordered by key field studentID, design a
multilevel indexing structure by considering un-spanned record organization.
Now, answer the following.
(i)
(ii)
(iii)
(iv)
(v)
(vi)
How many block accesses are needed to access a record with index and without
index?
(vii)
How many records are there in top level (master) index block.
Q.4 (a)
[10]
Determine whether the following schedule is(conflict) serializable, for the concurrent
transactions 1 , 2, 3 and 4. The data items are A, B, and C. Draw the precedence graph.
Schedule :
Note:
Here,
r3(A); r2(C); w2(C); r1(B); w3(A); r2(A); r1(C); r4(A); r1(A); r3(B);
r1(A); - means that the transaction-1 reads data item A
w2(B); - means that the transaction-2 reads data item B
Q.4 (b)
Q.5 (a)
For the following SQL query, give two distinct query trees.
[5]
[5]
[5]
List five important features of XML schema, which are not found with XML DTDs.
[5]
********
Page 2 of 2