Question 1
Question 2
Question 3
Question 4
Question 5
A database table T1 has 2000 records and occupies 80 disk blocks. Another table T2 has 400 records and occupies 20 disk blocks. These two tables have to be joined as per a specified join condition that needs to be evaluated for every pair of records from these two tables. The memory buffer space available can hold exactly one block of records for T1 and one block of records for T2 simultaneously at any point in time. No index is available on either table. If, instead of Nested-loop join, Block nested-loop join is used, again with the most appropriate choice of table in the outer loop, the reduction in number of block accesses required for reading the data will be
Question 6
There are 5 records in a database.
Name Age Occupation Category Rama 27 CON A Abdul 22 ENG A Jeniffer 28 DOC B Maya 32 SER D Dev 24 MUS C
There is an index file associated with this and it contain the values 1, 3, 2, 5 and 4. Which one of the fields is the index built form?
Question 7
A B+ tree of order d is a tree in which each internal node has between d and 2d key values. An internal node with M key values has M+1 children. The root (if it is an internal node) has between 1 and 2d key values. The distance of a node from the root is the length of the path from the root to the node. All leaves are at the same distance from the root. The height of the tree is the distance of a leaf from the root.
a). What is the total number of key values in the internal nodes of a B+ tree with l leaves (l≥2)?
b). What is the maximum number of internal nodes in a B+ tree of order 4 with 52 leaves?
c). What is the minimum number of leaves in a B+ tree of order d and height h(h≥1)?
Question 8
SELECT E.eno, COUNT(*) FROM Employees E GROUP BY E.enoIf an index on eno is available, the query can be answered by scanning only the index if
Question 10
There are 36 questions to complete.