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.
| 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 allowedWhat should I do now?ThanksSELECT COUNT(ISNULL(Q2_Standard,0)) AS totalFROM Answers_1_27WHERE Q2_Standard = 'yes'GROUP BY Q2_Standard |
|
|
|
|
|