| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Tabular Report
Hi Jill,
If I understand you correctly, that's what you need:
assuming that hour column is NUMBER and type is CHAR
SELECT ssn SSN,
week DATE,
decode(type,'REG',hour,0) REG,
decode(type,'SICK',hour,0) SICK,
decode(type,'VACATION',hour,0) VAC,
xxxxxxxxxxx,
xxxxxxxxxxxx,
xxxxxxxxxxxxxxx,
![]() |
![]() |