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

A trigger can reference objects outside the current database? State true or false.

550


How do I find the port number for sql server?

500


Is t sql the same as sql server?

511


What is query and its types?

510


Explain the collation?

624






How do you open a cluster administrator?

623


How to define output parameters in stored procedures?

517


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

530


What is SQL Azure Data sync?

103


What is report subscription?

91


How to find the source of a table in sql server?

523


What are the advantages of user defined function?

490


Explain the difference between HTTP and HTTPS in database?

560


What is the rdl file?

88


Who is the owner of a schema in ms sql server?

542