The Difference between 'Count' and 'Count(*)'
Answers were Sorted based on User's Feedback
Answer / anand
COUNT(column_name): COUNT THE NUMBER OF ROWS EXCLUDING NULL
VALUES.
COUNT(*):COUNT THE NUMBER OF ROWS INCLUDING NULL VALUES AND
DUPLICATES.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / pradip jain
COUNT(column_name): COUNT THE NUMBER OF ROWS EXCLUDING NULL
VALUES BUT INCLUDING DUPLICATES
COUNT(*):COUNT THE NUMBER OF ROWS INCLUDING NULL VALUES AND
DUPLICATES.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mahavir bansal
COUNT(Exp): COUNT the no of not NULL Records Including
Duplicates values
COUNT(*):returns the No of Records in the Table.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know hot add cpu in sql server 2008?
What is the command to change the recovery model?
Can you explain what is indexed view? How to create it?
your distribution database is full what will u do
What are the requirements for sql server 2016?
How many types of cursors are there in SQL Server?
5 Answers 247Customer, CarrizalSoft Technologies,
State the difference between local and global temporary tables?
What are the tool windows in sql server management studio? : sql server management studio
Can store procedure call by user define function in SQL server?
Is it possible to create tables in stored procedures using a variable for the table name?
What is a print index?
what is a traditional network library for sql servers? : Sql server database administration
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)