Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help me out on tricky SQL!
Hi,
select max(a),max(b),max(c),max(d)
from
(select
decode(rownum,1,a,null) a,decode(rownum,3,a,null) c
,decode(rownum,2,a,null) b
decode(rownum,1,b,null) a,decode(rownum,3,b,null) c
,decode(rownum,2,b,null) b
ugly, but works ...
Hth
Thomas
-- Posted from [212.20.131.226] via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Tue Sep 11 2001 - 08:23:38 CDT
![]() |
![]() |