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

Answer Posted / vijay dev saxena

Count(exp): Counts the number of rows excluding null values.
Count(*) : Counts the number of rows including null and
duplicates records.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is resource db in sql server?

775


What is it’s similarity with sql server?

155


What is dynamic cursor in SQL SERVER?

771


Can group by and orderby be used together?

794


What is apply operator in sql?

784


how to avoid cursors? : Sql server database administration

691


How can I create a report based on a query? : sql server management studio

795


How to set the current database in ms sql server?

770


Explain where clause?

763


What is the difference between dbcc indexdefrag and dbcc reindex?

737


What is named query? : sql server analysis services, ssas

725


What is the difference between composite index and covering index?

715


What is BCNF? How is it better than 2NF & 3NF?

789


What is sub-query in sql server? Explain its properties.

846


what is a transaction? : Sql server database administration

678