Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: 'SUM' strings to concatenated string
If you know how many entries you get you can pivot them using group by.
After that you can concatenate the columns. Works like this
select max(name1),
max(name2), max([...])
case when nr = 2 then username end name2, [...]
username
from table
)
)
Regards,
Jörg Received on Fri Feb 17 2006 - 06:23:54 CST