Question: Consider again the schema with the Sailors relation: Sailors(sid: integer, sname: string, rating: integer, age: real) Assume that each tuple of Sailors is 50 bytes
Sailors(sid: integer, sname: string, rating: integer, age: real)
Assume that each tuple of Sailors is 50 bytes long, that a page can hold 80 Sailors tuples, and that we have 500 pages of such tuples. For each of the following selection conditions, estimate the number of pages retrieved, given the catalog information in the question.
1. Assume that we have a B+-tree index T on the search key Sailors.sid , and assume that IHeight(T) = 4, INPages(T ) = 50, Low(T ) = 1, and High(T ) = 100,000.
(a) σSailors.sid<50,000(Sailors)
(b) σSailors.sid=50,000(Sailors)
2. Assume that we have a hash index T on the search key Sailors.sid , and assume that IHeight(T) = 2, INPages(T ) = 50, Low(T ) = 1, and High(T ) = 100,000.
(a) σSailors.sid<50,000(Sailors)
(b) σSailors.sid=50,000(Sailors)
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
The answer to each question is given below 1 a Assuming uniform distribution around half of the 4000... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
960-C-S-D (2471).docx
120 KBs Word File
