Change the qualifier of the column in the subquery to csm2:
This might lead to better plan.Code:AND NOT EXISTS ( SELECT csm2.sty_dsp_nbr
Hard to give another advice without knowledge of the logic behind the data etc.
|
Results 1 to 3 of 3
Thread: NOT EXISTS replace with NOT INThreaded View
|
Click Here to Expand Forum to Full Width |