Let say I have non clustered index is created with include columns If we query select col2, col3 from table1 where col1=value1
Index is created on col1 with include col2,col3,col4.
In this case, Will my non clustered index will be used, and it will use include column from leaf node? or it will do another look up for col2, and col3? as include has more columns then selected columns?
CREATE INDEX idx1 ON MyTable (Col1) INCLUDE (Col2, Col3,Col4)
My select is:
select col2,col3 from mytable where col1=value1