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: Help with query order

Re: Help with query order

From: DA Morgan <damorgan_at_psoug.org>
Date: Sat, 23 Dec 2006 09:37:32 -0800
Message-ID: <1166895449.760292@bubbleator.drizzle.com>


hasta_l3_at_hotmail.com wrote:
> I cant get the results of the following query correctly ordered.
> Any help would be much appreciated (10.2.0.1)
>
> select 'Merry ' from dual
> union
> select 'Christmas ' from dual
> union
> select 'dear ' from dual
> union
> select 'group ' from dual
>
> --- Raoul :-)

Perhaps this will help.

WITH q AS (SELECT ' the season' AS SUFFIX from dual) SELECT 'Hope all are enjoying' || suffix FROM dual, q;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Sat Dec 23 2006 - 11:37:32 CST

Original text of this message

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