selecting multiple values inside decode
490527Mar 6 2006 — edited Mar 8 2006I have query as follows,
select decode(col1,'X',(select col2,col3 from tab1),'Y',(select col4,col5 from tab2)) from dual
It works only if i select only 1 column(col2 or col3 & col4 or col5) in either of the two select queries.
but i need to select multiple values by decoding 1 value.
Is there a better approach?