Oracle Database SQL — Question 8

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

Answer options

Correct answer: A, C

Explanation

Option A is correct as COUNT(*) indeed counts all rows, including duplicates and NULLs. Option C is also correct because COUNT(DISTINCT inv_amt) specifically excludes duplicates and NULLs in the counting process. Options B, D, and E are incorrect; COUNT can be used with various data types, COUNT(inv_amt) does not include NULLs, and COUNT with DISTINCT can have a WHERE clause.