1. Home
  2. Data Science
  3. SQL for Data Analysis
  4. What does COUNT(column) exclude that COUNT(*) includes?

Added 30 Nov -0001

What does COUNT(column) exclude that COUNT(*) includes?

  1. Rows where the column is NULL Correct answer
  2. Rows that duplicate earlier ones
  3. Rows rejected by the WHERE clause
  4. Rows whose value is zero

Correct answer

A. Rows where the column is NULL

16 views

MCQSEXAM

Explanation

COUNT(column) counts only non-NULL values, whereas COUNT(*) counts every row.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? 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