Quote:
|
Originally Posted by kfc@vd.dk
I am not sure, that I understand. What do you mean when you say, that I should bring til columns to the front?
|
There is a difference between
create index INDX5 on A(c,d);
and
create index INDX5 on A(d,c);
the first column in the index definition should be that column, which reduces the number of rows more than the other.
If a
select * from a where c = 5 returns 100 rows and a
select * from a where d = 14 returns 50000 rows, then c should be the first column.