The SQL function COUNT(*) returns:
-
A
the largest value in a column
-
B
the number of rows in the result
Correct answer
-
C
the sum of a numeric column
-
D
the number of distinct values
Correct answer
B. the number of rows in the result
15 views
Explanation
COUNT(*) counts rows, including those containing NULL.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ