Case 2: A More Complex Query
Demonstration using a more complex query.
Case 2 demonstrates the following:
- The functions
SUM(expression)andNVL(expr1, expr2)in theSELECTlist - The
GROUP BYandHAVINGclauses
This query retrieves the departments from GTW_EMP whose total monthly expenses are higher than $10,000.