QuestionQ173

VerifiedReporting Aggregated Data Using the Group Functions

Review the following statements and results:

Question Image

How many rows does the final query retrieve?

Explanation

A global temporary table defaults to ON COMMIT DELETE ROWS when no ON COMMIT clause is specified. The COMMIT therefore removes the earlier temporary rows; the subsequent INSERT adds 14 rows, so COUNT(*) returns 14.

Learn more

Community Discussion

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