Machine-translated by Google. Questions are authored in English.
Top

Discussion

A rule of thumb for choosing indexes for a relational database includes which of the following?

  • A.Indexes are more useful on smaller tables.
  • B.Indexes are more useful for columns that do not appear frequently in the WHERE clause in queries.
  • C.Do not specify a unique index for the primary key of each table.
  • D.Be careful indexing attributes that have null values.

Answer: D

Correct answer: Be careful indexing attributes that have null values.

Nulls complicate an index, since how they are stored and whether they can be searched for varies between products, and a column with many of them may not benefit from indexing at all. The other three rules are each stated backwards: indexes help most on large tables, on columns that do appear in WHERE clauses, and a unique index on the primary key is essential rather than avoidable.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.