Computer Science EngineeringHard

A table has 10 rows and column x contains 3 NULL values. What does SELECT COUNT(x) FROM table return?

  1. A. 10
  2. B. 3
  3. C. 13
  4. D. 7

Correct answer: D. 7

COUNT(column) ignores NULLs, so only the 7 non-null values are counted.

More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions

Exams that ask this topic