I ‘m executing some sql statements on my data and I have the following situation.
Select statement looks like this
select *
from t1, t2
where t1.id = t2.t1_id
t1.c1 = 'X' and t1.c2 in ('Y', 'Z')
Running the explain plan I saw that the col2 filtering has cost 11 (Table Access with filter predicates) and the col1 1 (table access index).
How can I reduce the cost of the searching on col2? Should I put any hint in my query?
Thanks in advance,