Zend
200-530 · Question #19
Given a table created as shown below: create table foo (c1 int, c2 int, c3 int, c4 char(10)) If column c1 has a cardinality of 10, column c2 has a cardinality of 5000, and column c3 has a…
The correct answer is C. create index foox on foo (c3,c2,c1). See the full explanation below for the reasoning.
Question
Given a table created as shown below: create table foo (c1 int, c2 int, c3 int, c4 char(10)) If column c1 has a cardinality of 10, column c2 has a cardinality of 5000, and column c3 has a cardinality of 5000000, which of the following indexes would optimize the following statement? Select c1,c2,c3 from foo where c1=100 and c2= 100 and c3 = 100
Options
- Acreate index foox on foo (c1,c2,c3)
- Bcreate index foox on foo (c2,c1,c3)
- Ccreate index foox on foo (c3,c2,c1)
- Dcreate index foox on foo (c3,c1,c2)
How the community answered
(28 responses)- A4% (1)
- B4% (1)
- C82% (23)
- D11% (3)
Community Discussion
No community discussion yet for this question.