Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Interesting data transposition problem
Thanks for the solution. I am using oracle 8i which does not support
ANSI syntax full outer join but I managed to get the same result using
the following query
select x.x, y.y from (
select
rownum r, col2 x
from
ttt
where
col1 = 'X'
) x,
(
select
rownum r, col2 y
from
ttt
where
col1 = 'Y'
) y
WHERE
X.R(+) = Y.R
union
select x.x, y.y from (
select
rownum r, col2 x
from
ttt
where
col1 = 'X'
) x,
(
select
rownum r, col2 y
from
ttt
where
col1 = 'Y'
) y
WHERE
X.R = Y.R(+)
Received on Thu Jun 09 2005 - 18:01:01 CDT