QuestionQ116

VerifiedUsing Single-Row and Aggregate Functions

Which two statements correctly describe the COUNT function?

Choose two
Explanation

COUNT(*) returns the total number of rows, including duplicates and rows with null values. COUNT(DISTINCT inv_amt) returns the count of unique, non-null INV_AMT values. Oracle documents that COUNT(expr) counts only rows for which the expression is not null, while COUNT(*) includes duplicates and nulls.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!