Question DB-SQL-0005
EasyWhich aggregate function counts rows?
- A.
COUNT()
- B.
TOTAL()
- C.
Show answer and explanation
Answer: A
COUNT(*) counts all rows; COUNT(column) counts non-null values in that column.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SQL question
Which aggregate function counts rows?
COUNT()
TOTAL()
Answer: A
COUNT(*) counts all rows; COUNT(column) counts non-null values in that column.
SUM()
NUMBER()