I'm looking to optimize a clustered index based on my where and order by clause.
where Active = 1 and Deleted = 0
order by ControlName
In my clustered index the order of my columns is Active, Deleted, and ControlName.
Can I optimize this further?
I'm looking to optimize a clustered index based on my where and order by clause.
where Active = 1 and Deleted = 0
order by ControlName
In my clustered index the order of my columns is Active, Deleted, and ControlName.
Can I optimize this further?
For this query, the index you want is either (Active, Deleted, ControlName) or (Deleted, Active, ControlName).
It does not have to be a clustered index.