View Single Post
  #1 (permalink)  
Old Jan 27th, 2006, 17:38
gecastill gecastill is offline
Junior Member
Join Date: May 2005
Location: Virginia US
Age: 31
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
SELECT statement

I am trying to assign a field value [say column_B] from another table [say table_B] to a column name [say column_A] that is part of the query result set of table_A.

See example below.

SELECT A.Product, A.Customer, A.Vendor, ProductManager = (SELECT B.user_desc FROM TABLE B WHERE user_name = 'gecastill'), A.LaunchDate FROM TABLE A

How can I do that? I used to know how to do that but I have not done it in a year.

Please advise, thanks

Last edited by gecastill; Jan 27th, 2006 at 17:45.
Reply With Quote