Let say if I have table TABLE1 that consist of million of records. The table has COLUMN A, B and C. I have an index of A with B. C is not indexed at all.
After that I do a query with as per below
- I run query
Select * from TABLE1 where A='something' and B='something' - I run query
Select * from TABLE1 where A='something' and B='something' and C='something'
I understand that both query will use the index that I have specified. Based on my understanding, the performance of both query should be the same. However, is there any possibility that a query has better performance / run faster than the other? Why?