Starting with SQL Server 2005 RTM and through the latest SQL Server 2008 build at the time of this writing, there is a pretty nasty bug with respect to the COUNT(expression) function and its rule that when using an expression, it filters out NULLs in its count results.
(more…)
July 2009
Monthly Archive
Fri 24 Jul 2009
SQL Server – COUNT(expression) bug
Posted by Phil Brammer under SQL Server , SQL Server 2005 , SQL Server 2008[4] Comments