Re: SQL help

From: Carlos Sierra <carlos.sierra.usa_at_gmail.com>
Date: Mon, 23 May 2016 18:43:35 -0400
Message-Id: <1F6FCB45-1860-4F0D-8457-ECEB0967C801_at_gmail.com>



SELECT a || CHR(10) || b FROM test;

> On May 23, 2016, at 5:58 PM, Upendra nerilla <nupendra_at_hotmail.com> wrote:
>
> Hey guys,
> Could someone help with a SQL:
>
> I have a test table with 2 rows:
>
> create table test (a varchar2(50), b varchar2(50));
> insert into test values ('one', 'first row');
> insert into test values ('two', 'second row');
> commit;
>
> I need a query that shows the output as the following (without using union). Order of the values is not important.
>
> OUTPUT
> =======
> one
> first row
> two
> second row
>
> I thought unpivot might work, poked around a bit.. my brain is too tired to think..
>
> Thanks in advance
> -Upendra

--
http://www.freelists.org/webpage/oracle-l
Received on Tue May 24 2016 - 00:43:35 CEST

Original text of this message