hi,need help in rewriting this sql
Hi,
below query takes about 2 hrs to execute and sometimes more than that,need help in rewriting the sql,,the plan uses Merge Join cartesian with buffer sort ,both combine to have large executions and the actual number of rows executed is too hig compared to the estimated rows, Advisor has recommend more than ten indexes to fix the issuse,but i wish ro rewrite the sql,.
I tried to avoid MCJ using hidden parameters at session level,though it avoids them still the actual rows executed in PSAADRESSES index with index fast full scan was too high..attaching the sql monitor report