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

From ZCubes Wiki
Jump to navigation Jump to search
 1REM
 2REM u06.sql
 3REM
 4REM Accounts with balances over $10,000 receive 6 percent interest,
 5REM while all others receive 5 percent.
 6REM
 7
 8UPDATE Depositor
 9SET balance = balance*1.06
10WHERE balance>10000;
11
12UPDATE Depositor
13SET balance = balance*1.05
14WHERE balance<=10000;