Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Aged Yak Warrior
In (Som, Ni, Yak)
count( case when somecol = somecondition then column_ref end ) as passed,
count( case when somecol <> somecondition then column_ref end ) as allothers
Flowing Fount of Yak Knowledge
COUNT(CASE WHEN desc1 = 'All others' THEN column_ref END) AS 'All others'
SUM(CASE WHEN desc1 = 'All others' THEN 1 ELSE 0 END) AS 'All others'