Yurttas/PL/DBL/oracle/F/01/Bank/a03.sql

From ZCubes Wiki
Revision as of 22:50, 4 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div"> REM REM a03.sql REM REM Find the average account balance at each branch where the average REM account balance is more...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1REM
 2REM a03.sql
 3REM
 4REM Find the average account balance at each branch where the average
 5REM account balance is more than $200.
 6REM
 7
 8SELECT branchname, AVG(balance)
 9FROM Depositor
10GROUP BY branchname
11HAVING AVG(balance)>200;