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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Convert

Author  Topic 

vicki
Posting Yak Master

117 Posts

Posted - 2001-11-15 : 13:14:19
Hi,

I want to convert to 0 if count query return nothing.

Q2_Standard is vachar, if I run this query then I have error:Implicit convsersation from datatype "int" to "varchar" it not allowed

What should I do now?
Thanks

SELECT COUNT(ISNULL(Q2_Standard,0)) AS total
FROM Answers_1_27
WHERE Q2_Standard = 'yes'
GROUP BY Q2_Standard


   

- Advertisement -