Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

The Difference between 'Count' and 'Count(*)'

Answer Posted / vijay dev saxena

Count(expr) -> returns the number of records in the table
where the expr is not null in the particular column.
Count(*) -> returns the number of all records in the table.
(including duplicates and those with nulls)

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add more data to the testing table in ms sql server?

1017


What are the differences between web role and worker role?

122


How to truncate the log in sql server 2012? : sql server database administration

1215


What is triggers in ms sql server?

1061


Why should you use or avoid select * statements?

977


What is raiseerror? What is raiseerror?

1081


How can you check the level of fragmentation on a table?

995


Where the sql logs gets stored?

944


Explain subquery and state its properties?

976


What is the difference between NOROW and LOCKROW?

2787


What are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture

964


What does the on delete cascade option do?

971


What does this statement do @@rowcount?

931


How do I run a trace in sql server?

941


What is set nocount on?

902