I have two tables
select col1 , col2 , col3, col4, ........, col20 from ftcm; --TABLE has 470708 ROWS
select val from cspm where product='MARK'; --TABLE has 1 ROW
i have to make col3
as null
if col2=val
.
have thought of joining as
select
col1 , col2 , decode(col2,val,NULL,col3) col3 , col4, ........, col20
from ftcm a left outer join ( select val from cspm where product='MARK') b
on a.col2=b.val;
but it seems to be time taking Please advise if there is any other way to get it tuned in best way.