Day 15

Quiz

1: What will happen if a unique index is created on a nonunique field?
A1: If there are already nonunique values in the column to be indexed, the index will not be created. If there are not nonunique values in the column to be indexed, the index will be created, but will not allow duplicate values in the indexed column.
2: Are the following statements true or false?
  1. Indexes take up space in the database and therefore must be factored in the planning of the database size.

  2. If you have the disk space and you really want to get your queries smoking, the more indexes the better.

  3. An index is implicitly created when a primary key is specified for a table.

A2:
  1. Indexes take up space in the database and therefore must be factored in the planning ...

Get Sams Teach Yourself SQL in 21 Days, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.