QuestionQ130

VerifiedReporting Aggregated Data Using the Group Functions

Which two statements are accurate about the COUNT function?

Choose two
Explanation

COUNT(*) returns the total number of result rows, including duplicate rows and rows that contain NULLs. COUNT(DISTINCT inv_amt) counts only unique, non-NULL INV_AMT values. In contrast, COUNT(cust_id) excludes NULL CUST_ID values, and DISTINCT may be used in a query that also has a WHERE clause.

Learn more

Community Discussion

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