Oracle Database Administration I — Question 162

Which two statements are true about the COUNT function? (Choose two.)

Answer options

Correct answer: A, B

Explanation

The correct answers are A and B because COUNT(*) includes all rows, regardless of duplicates or NULLs, while COUNT(DISTINCT inv_amt) only counts unique values, excluding duplicates and NULLs. Option C is incorrect since a WHERE clause can be used with COUNT(DISTINCT), option D is false as COUNT can be used with various data types, and option E is incorrect because COUNT(inv_amt) excludes NULLs.