Do make indexes containing another index make sense?

Posted by Orlando Dilasso on Stack Overflow See other posts from Stack Overflow or by Orlando Dilasso
Published on 2010-04-21T12:41:04Z Indexed on 2010/04/21 12:43 UTC
Read the original article Hit count: 409

Filed under:
|

Given a table (id, col1, col2), does it make sense to create the following indexes:

Index1 (col1) not unique

Index2 (col1, col2) not unique

I am faced with a legacy database that is full of those.

Can I safely delete Index1? Anwser needed for SQL Server and Oracle.

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about index