Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Static Col in Result Set

Author  Topic 

pgmr1998
Yak Posting Veteran

66 Posts

Posted - 2010-07-29 : 16:27:10
How could I embed a column of static data to my result set? This data will be constant for all rows returned.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-29 : 16:30:05
SELECT 1 AS StaticData, Column1, Column2
FROM Table1
...

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

pgmr1998
Yak Posting Veteran

66 Posts

Posted - 2010-07-29 : 16:40:34
Thanks...
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-07-29 : 16:55:27
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -