SQL Server: Count based on Condition

added by SuprotimAgarwal
4/1/2011 2:11:35 AM

274 Views

Many a times, you may want to do a count in SQL Server, based on a condition. The easiest way is to use a combination of SUM and CASE as shown in this example


0 comments