PrepAway - Latest Free Exam Questions & Answers

which of the following indexes would optimize the statement given below?

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

PrepAway - Latest Free Exam Questions & Answers

A.
create unique index foox on foo (c1) include (c3)

B.
create index foox on foo (c1)

C.
create index foox on foo (c1,c3)

D.
create unique index foox on foo (c1,c3)


Leave a Reply

Your email address will not be published. Required fields are marked *