我的指数如下:
CREATE NONCLUSTERED INDEX [IX_Marker] ON [dbo].[Marker]
(
[Run] ASC,
[EquipmentID] ASC,
[ReadTime] DESC
)
INCLUDE ( [Sequence])
WHERE ([ReadTime]> 07/01/2011 )
在什么情况下,SQ服务器机能选择这一指数? 例如,我要问:
Select * From Marker Where ReadTime > 3/1/2011
I assume the index wouldn t be used in this case? But if I changed the Where clause to 8/1/2011 , it would get used?