nerdexam
Zend

ZF-100-500 · Question #106

You have a table created as follows: create table foo (c1 int, c2 char(30), c3 int, c4 char(10)) If column c1 is unique, which of the following indexes would optimize the statement given below?…

The correct answer is C. create unique index foox on foo (c1) include (c3). See the full explanation below for the reasoning.

Question

You have a table created as follows: create table foo (c1 int, c2 char(30), c3 int, c4 char(10)) If column c1 is unique, which of the following indexes would optimize the statement given below? Select distinct (c1), c3 from foo where c1=10

Options

  • Acreate index foox on foo (c1)
  • Bcreate unique index foox on foo (c1,c3)
  • Ccreate unique index foox on foo (c1) include (c3)
  • Dcreate index foox on foo (c1,c3)

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    13% (4)
  • C
    77% (23)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full ZF-100-500 Practice