Questions from Database Systems


Q: In the sequential file organization, why is an overflow block used

In the sequential file organization, why is an overflow block used even if there is, at the moment, only one overflow record?

See Answer

Q: Give a normalized version of the Index metadata relation, and explain

Give a normalized version of the Index metadata relation, and explain why using the normalized version would result in worse performance.

See Answer

Q: Standard buffer managers assume each block is of the same size and

Standard buffer managers assume each block is of the same size and costs the same to read. Consider a buffer manager that, instead of LRU, uses the rate of reference to objects, that is, how often an ob...

See Answer

Q: When is it preferable to use a dense index rather than a

When is it preferable to use a dense index rather than a sparse index? Explain your answer.

See Answer

Q: Spatial indices that can index spatial intervals can conceptually be used to

Spatial indices that can index spatial intervals can conceptually be used to index temporal data by treating valid time as a time interval. What is the problem with doing so, and how is the problem so...

See Answer

Q: Some attributes of relations may contain sensitive data, and may be

Some attributes of relations may contain sensitive data, and may be required to be stored in an encrypted fashion. How does data encryption affect index schemes? In particular, how might it affect schem...

See Answer

Q: What is the difference between a clustering index and a secondary index

What is the difference between a clustering index and a secondary index?

See Answer

Q: For each B+-tree of Exercise 14.3, show

For each B+-tree of Exercise 14.3, show the steps involved in the following queries: a. Find records with a search-key value of 11. b. Find records with a search-key value between 7 and 17, inclusive....

See Answer

Q: Consider the bank database of Figure 2.18. Give an

Consider the bank database of Figure 2.18. Give an expression in the relational algebra for each of the following queries: a. Find each loan number with a loan amount greater than $10000. b. Find the...

See Answer

Q: The solution presented in Section 14.3.5 to deal

The solution presented in Section 14.3.5 to deal with non-unique search keys added an extra attribute to the search key. What effect could this change have on the height of the B+-tree?

See Answer