QuestionQ241

VerifiedReporting Aggregated Data Using the Group Functions

Refer to the exhibit and review the structure of the CUSTOMERS table. Which statement displays the highest credit limit available for each income level within each city in the CUSTOMERS table?

Question Image

Explanation

MAX(CUST_CREDIT_LIMIT) returns the highest credit limit within each group. Grouping by CUST_CITY and CUST_INCOME_LEVEL creates exactly one group for every city-and-income-level combination, producing the required result. Oracle permits aggregate functions in the select list with grouping expressions in the GROUP BY clause.

Learn more

Community Discussion

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