COUNT() returns:
Correct answer
B. Total rows
10 views
B. Total rows
10 views
COUNT() returns the total number of rows that match the query. COUNT(*) counts every row, while COUNT(column) counts only non-NULL values in that column.
SUM, MAX and AVG are the other aggregates in the options.
Keep preparing with more Database Management Systems MCQs on MCQsExam.com.
Asked in: FPSC,CSS,NTS,PPSC,PMS
Not sure why the answer is B? Ask here and get an explanation.