Set 3-4 Flashcards
(14 cards)
A hash table can have a hash index.
True
A primary index can be structured as a hash index.
True
A hash key can be structured as a multi-level index.
False
hash index can be sparse.
False
Refer to the bitmap index in the above animation. The three 1’s in the MSN column means:
The value MSN appears in three table rows.
How many 1’s can appear in a single row of a bitmap index?
Exactly one
California has 26 million licensed drivers and 2,597 ZIP codes. The California Department of Motor Vehicles tracks one address for every licensed driver in a table with a ZipCode column. How many bytes are in a bitmap index on ZipCode?
Approximately 8.4 billion
An index on a unique sort column.
Primary Index
An index on a non-sort column.
Secondary Index
An index with primary key values rather than block pointers.
Logical Index
An index with table block pointers.
Physical Index
Refer to the animation above. Which table blocks does the following query read?
SELECT FlightNumber, AirlineName
FROM Flight
WHERE DepartureTime > “12:00” AND DepartureTime < “16:00”;
Blocks 0 and 2
Which index types can also be function indexes?
Hash, bitmap, single-level, multi-level, and logical index types
When should a database designer consider a function index?
The WHERE clause format is different than storage format