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!

Select Syntax Question 1

Status
Not open for further replies.

xweyer

MIS
Sep 7, 2000
140
US
I'm new to TSql and am trying to interpret a line of code which reads....

SELECT 'ASSET' Category,id, program,

"id" and "program" are fields from the source table but "Category" is not. So what is it? An alias of some sort?





 
That is a method of 'hard coding' data. Every record returned by the query will appear to have a column named Category with a value of ASSET.



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top