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: how to add a value to resultset

Union query: how to add a value to resultset

From: <ian_at_chezburns.com>
Date: Fri, 21 Dec 2007 01:52:49 -0800 (PST)
Message-ID: <8d0f7fd9-6218-4967-84bf-028e36740b11@c4g2000hsg.googlegroups.com>


Oracle noob here.

I need to add a constant value to a single column recordset. In SQL Server this would be

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

so I get

All
East
North
South
West

What's the Oracle equivalent?

Thanks Received on Fri Dec 21 2007 - 03:52:49 CST

Original text of this message

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