Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: display rows beside each-other

Re: display rows beside each-other

From: Kevin Crosbie <caoimhinocrosbai_at_yahoo.com>
Date: Fri, 15 Apr 2005 14:08:54 +0200
Message-ID: <1113566943.e220e7411f4f4309b4c60689fceed54f@teranews>


Try this:

select max(case when rownum = 1 then name else null end) || ' ' || max(case when rownum = 2 then name else null end)

from mytable

where rownum < 3;

"Ronald" <rmoleveld_at_hotmail.com> wrote in message news:1113564442.971966.215760_at_g14g2000cwa.googlegroups.com...
> hi, thanks.
>
> It's only for a max of 2 or 3 records (about 30 char long total.)
>
> But so far I see this only works on plsql isn't it ?
>
> Is there also a sql (beside plsql) solution ?
>
> Ronald.
>
Received on Fri Apr 15 2005 - 07:08:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US