I have an index on column A of my table. I have an index on column B of same table.
Is there any real benefit in creating an index on A and B (A, B
)?
In other words, when I run a SQL query to get something based on both columns, SQL Server will automatically use the existing indexes, right? So I don't need to create another index on A & B
.