lets say i have a table like this :
a | b | c | d
______________
1 | 2 | 4 | 5
6 | 2 | 5 | 5
3 | 5 | 2 | 5
[a]
column has clustered index
so the physical order which its stored is :
a | b | c | d
______________
1 | 2 | 4 | 5
3 | 5 | 2 | 5
6 | 2 | 5 | 5
now lets enhance the [a]
index to be [a,c]
( still as clustered).
now , I can't udnerstand how it can be stored since [a]
column is already sorted and [c]
column cant be sorted ( because sorting of [a]
hurts the sorting of [c]
)
so how does sqlServer will store it ?
2'nd question : do I need to open another index for [c]
?