Click to See Complete Forum and Search --> : Concat results


mooks
08-06-2001, 04:46 AM
Hi,

If i have the following sql and it will returns more than 1 record.

select subjects from students
where name = 'oracle';

result:
science
maths
english

in this case, how do i concat it so that it will returns me science||maths||english in a single row? Any help pls? Thanks! :D

aph
08-06-2001, 10:11 AM
Use subQuery technique to get your desired result.

mooks
08-07-2001, 06:53 AM
Thanks for the reply. Any examples please?
Thanks in advance!

vbaskar
08-07-2001, 11:42 AM
Hi.

u wanted to transpose the rows right...there are people who did it using MULTIPLe decodes !! just search in the forum for TRANSPOSE..