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
 Select Query As

Author  Topic 

gemispence
Yak Posting Veteran

71 Posts

Posted - 2006-02-27 : 12:23:58
I'm trying to use this query, but its giving me an error:

select count (*) from table where validad = 1 as VALID

I just want to rename the query result column name to VALID but it's giving me a syntax error. It should be really simple.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-02-27 : 12:47:28
select count (*) as VALID
from table
where validad = 1

Tara Kizer
aka tduggan
Go to Top of Page

gemispence
Yak Posting Veteran

71 Posts

Posted - 2006-02-27 : 12:56:43
Thanks Tara :)
Go to Top of Page
   

- Advertisement -