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

Answer Posted / harish sharma

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

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain database normalization?

645


What is a fan-out query in SQL Azure?

99


How to create user messages with print statements in ms sql server?

588


What are sql server functions?

508


What is a result set object returned by odbc_exec()?

544






Explain the properties of a relational table?

557


What are the types of resultset?

531


What is a select query statement in ms sql server?

578


What is lock escalation? : sql server database administration

592


Which is the best place or learning center for MS SQL?????In Bangladesh?????

1592


what stored procedure can you use to display the current processes? : Sql server administration

528


Explain the collation?

624


Do you have any idea about the tcl commands?

545


How to identify current user in ssrs report?

238


What is the definition for sql server 2000?

582