| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Transpose Oracle Table (Rows to columns)
Hi there,
Could you try something like that?
Mike
select Proj, Prot, Pid, SUM (HGB) HGB, SUM (RBC) RBC, ...
from
(
select Proj,
Prot,
Pid,
DECODE (labcode, 'HGB', Result, 0) HGB,
DECODE (labcode, 'RBC', Result, 0) RBC,
DECODE (labcode, 'HCT', Result, 0) HCT,
...
![]() |
![]() |