3.6 Case 2: A More Complex Query
Demonstration using more complex queries.
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.
                  
Parent topic: Case Studies