Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using 'AS' for two fields

Status
Not open for further replies.

jalbao

Programmer
Joined
Nov 27, 2000
Messages
413
Location
US
is it possible to use the AS function over two fields?

looking to do something like this:
SELECT (field_1,field_2) AS foo
FROM table

now when i call the 'foo' variable the values of field_1 and field_2 are returned.

tia
 
If these are text fields you can do something like Field_1 + ' ' + Field_2 as Foo.

Craig
 
thanks a bunch craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top