After Using the "Display Estimated Execution Plan" on two queries, I ended up creating two indexes as follows:
CREATE NONCLUSTERED INDEX IX_ABC ON dbo.my_table (colA,colB,colC) and
CREATE NONCLUSTERED INDEX IX_ABC ON dbo.my_table (colA,colD,colE) I noticed that creating just one index (replacing the above two):
CREATE NONCLUSTERED INDEX IX_ABC ON dbo.my_table (colA,colB,colC,colD,colE) also optimizes my queries.
So my question is, is it correct that the index with all the columns optimizes as well as two separate ones or is one method preferable to the other.
Thanks