Is UNION the word that is on the tip of your tongue? :-)

Select world from foo union select world from bar


-----Original Message-----
From: Phillip Vector [mailto:[email protected]] 
Sent: Saturday, June 05, 2010 12:20 AM
To: cf-talk
Subject: Tip of my tongue


I know these is a simple solution, but I seem to be in a "can't see
the forest through the trees" situation...

I have 2 tables. Foo and Bar. Both have 1 column called "World" (not
really, but it's an example).

How would I write a query (named Hello) that produces 1 result as a
mix of Foo and Bar? Basically, one query result of Hello.World
containing all the entries from both Foo and Bar?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334327
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to