1. Home
  2. Data Science
  3. SQL for Data Analysis
  4. The SQL function COUNT(*) returns:

Added 30 Nov -0001

The SQL function COUNT(*) returns:

  1. the largest value in a column
  2. the number of rows in the result Correct answer
  3. the sum of a numeric column
  4. the number of distinct values

Correct answer

B. the number of rows in the result

15 views

MCQSEXAM

Explanation

COUNT(*) counts rows, including those containing NULL.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More SQL for Data Analysis MCQs

Practise all SQL for Data Analysis MCQs

Similar MCQs