Union is just two queries together.  You can drop the union into a stored
proc to get better result time.  Your situation is the reason UNION exists
and is ANSI SQL.

Jacob

-----Original Message-----
From: Torrent Girl [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 1:08 PM
To: SQL
Subject: RE: Help - stumped

it's a pretty long query, won't that slow up the system?



>Select email from bob
>Union
>Select email from jane
>
>-----Original Message-----
>From: Torrent Girl [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, May 31, 2005 12:37 PM
>To: SQL
>Subject: Help - stumped
>
>I am pulling 2 different email addresses from  different tables through
>subqueries and they both have aliases.
>
>How can I put the two together as a list to create a seperate var?
>
>I want subquery1_email +  subquery2_email = email
>
>
>TGirl



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2302
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to