Set 3-4 Flashcards

(14 cards)

1
Q

A hash table can have a hash index.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A primary index can be structured as a hash index.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A hash key can be structured as a multi-level index.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

hash index can be sparse.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Refer to the bitmap index in the above animation. The three 1’s in the MSN column means:

A

The value MSN appears in three table rows.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many 1’s can appear in a single row of a bitmap index?

A

Exactly one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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?

A

Approximately 8.4 billion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An index on a unique sort column.

A

Primary Index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An index on a non-sort column.

A

Secondary Index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

An index with primary key values rather than block pointers.

A

Logical Index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

An index with table block pointers.

A

Physical Index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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”;

A

Blocks 0 and 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which index types can also be function indexes?

A

Hash, bitmap, single-level, multi-level, and logical index types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When should a database designer consider a function index?

A

The WHERE clause format is different than storage format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly