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 -> Union query: Add a constant value to a recordset

Union query: Add a constant value to a recordset

From: Chaihana Joe <ian_at_chezburns.com>
Date: Fri, 21 Dec 2007 02:17:40 -0800 (PST)
Message-ID: <2395e43b-5dd3-45b0-b97e-0c90a1e3c21c@n20g2000hsh.googlegroups.com>


Oracle noob here.

I need to add the value 'All' to a single column resultset. In MS SQL Server I'd say

SELECT Region
FROM RegionTable
UNION SELECT ' All'
ORDER BY Region

to get

All
East
North
South
West

What's the equivalent in Oracle SQL?

Thanks Received on Fri Dec 21 2007 - 04:17:40 CST

Original text of this message

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