QuestionQ46

VerifiedManipulating Data

Review the definition of the PRODUCTS table:

Question Image

Which query is valid?

Explanation

In an Oracle query with GROUP BY, each selected expression must be an aggregate, a grouping expression, a constant, or an expression involving one. Grouping by both PROD_ID and RELEASE_DATE permits SUM(COST) for each such group. Aggregate functions cannot be nested within one another in the same query block.

Learn more

Community Discussion

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