![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a table with 4 columns C1,C2,C3,C4 Sometimes there are selects with WHERE C1= xxx and C2 =kkk and sometimes with WHERE C3= yyy and C4 =zzz Is it better to have one index with all four columns C1,C2,C3,C4 or is it better to have two indexes, one with C1 and C2 and a second one wit C3 and C4 Thanks for any ideas Peter |
#3
| |||
| |||
|
|
I have a table with 4 columns C1,C2,C3,C4 Sometimes there are selects with WHERE C1= xxx and C2 =kkk and sometimes with WHERE C3= yyy and C4 =zzz Is it better to have one index with all four columns C1,C2,C3,C4 or is it better to have two indexes, one with C1 and C2 and a second one wit C3 and C4 Thanks for any ideas Peter |
![]() |
| Thread Tools | |
| Display Modes | |
| |