update accountset balance=balance * 1.05
This statement is applied to every tuple in account.
update accountset balance=balance * 1.06
where balance > 10,000
update account
set balance=balance * 1.05
where balance 10,000
Note: in this example the order of the two operations is important. (Why?)
For example, to pay 5% interest on account whose balance is greater than average, we have
update accountset balance=balance * 1.05
where balance > select avg (balance) from account