← Back to Test
Problem 6 - Olympiad
The SQL statement SELECT * FROM T WHERE a=5 ORDER BY b LIMIT 10 can use either (a) a clustered B+-tree on (a,b) or (b) a hash index on a plus an in-memory sort. Table T occupies 50 k pages and 100 tuples match a=5. Which index yields the fewest page I/Os and what is that number?