Click here to Skip to main content
12,406,795 members (62,557 online)
Click here to Skip to main content

SQL COUNT(*) Vs COUNT(column_name)

, 30 Apr 2010 CPOL
In many case we need to use COUNT function, but always we prefer COUNT(column_name) in placeof COUNT(*) and reason behind that COUNT(column_name) will perform better or faster thanCOUNT(*).Is this correct?SQL Server can't read just the contents of a single column without reading the...
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the Programming Tips Table of Contents to view the list of available articles in this section.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160730.1 | Last Updated 1 May 2010
Article Copyright 2010 by Samrat Banerjee
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid