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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query

Status
Not open for further replies.

Eddyoftheyear

Technical User
Aug 11, 2010
57
0
0
US
Hi,

I have a query result that I would like to add a value in a new column in the query result. Example of the query result is

Name DOB Dept Division

But I want to add another field which is not in the table showing the word Domestic in each records without inserting it in the table. Is there a way to do this?
 
SELECT [Name], DOB, Dept, Division, 'Domestic' AS AnotherField
FROM yourTable


Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top