Which of the following statement(s) is/are correct regarding COUNT functions in Structured Query Language of Relational Database Management System?
Which of the following statement(s) is/are correct regarding COUNT functions in Structured Query Language of Relational Database Management System?
I. COUNT(*) is used to count the number of values in a column.
II. COUNT() is used to count the number of rows of the query result.
Show answerHide answer
Correct answer: (D) Neither I nor II
Explanation
Both statements are reversed: COUNT(*) counts all rows of the result, while COUNT(column) counts the non-NULL values in a column. So neither is correct.