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 |
i have a table student like sname ----- ram ram ram raj raj raj i need the output like sname ----- ram raj ram raj ram raj
What is microsoft sql server?
How do you create a clustered index?
What are the grouping functions?
What are types of scd? : sql server analysis services, ssas
What is difference between inner join and full join?
I hav 10 records only one column 1,2,3,4,5......10 now am writing query select max(column name) Then What is The Output
how to give input dynamically to a insert statement in sqlserver
What are the restrictions applicable while creating views? : SQL Server Architecture
What does set rowcount do?
What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
Can a stored procedure call itself or a recursive stored procedure? How many levels of sp nesting is possible?
Oracle (3253)
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)