I have a simple query:
SELECT * FROM MH.APPOINTMENT WHERE DOCTOR_INC_ID = 1391791151
When I look at the execution plan, I see that the data is retrieved using the index
However, the following query:
SELECT * FROM MH.APPOINTMENT WHERE DOCTOR_INC_ID NOT IN (1391791151)
does not use our index. We are using Oracle 11g Release2. Any suggestions are welcome. Thanks
source share