This is a discussion on "SELECT statement" within the Databases section. This forum, and the thread "SELECT statement are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
SELECT statement
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
You pretty much just did it didn't you?
Last edited by Trebz; Feb 15th, 2006 at 23:29. |
![]() |
| Tags |
| select, statement |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| chained select box dependable select | thenamenoonehastaken | JavaScript Forum | 0 | Feb 8th, 2008 05:49 |
| PHP If Statement... | mcdanielnc89 | PHP Forum | 16 | Dec 9th, 2007 17:44 |
| If..Else statement help | IanW | PHP Forum | 3 | Oct 6th, 2006 13:40 |
| Select statement inside a rs loop? | deeem | Classic ASP | 0 | Sep 9th, 2006 15:42 |
| With Statement | Trebz | Classic ASP | 2 | Feb 2nd, 2004 14:56 |