Thanks so much.
As mentioned I have used with clause with 10 temp tables...
In my where condition of select clause I have a condition as mentioned below:
where (( x.account_sk =tm.account_sk and y.ACCOUNT_SK=tm.account_sk ) ---------------------(1)
or
x1.account_sk =tdt.account_sk and y1.account_sk=lft.account_sk ))---------(2)
If I give condition (1) ,(2) seperately it works fine,when I include or in between ,query doesnt return any result****ns for longer time
There is no cartesian product.
Please help