Tuples in for which
is true are deleted.
If the where clause is omitted, all tuples are deleted.
For example, to delete the records of all accounts with balances below the average, we might write
You can see that as we delete tuples from deposit, the average balance changes!
Solution: The SQL standard does not allow delete requests like this. Another possible solution would be to only mark the tuples to be deleted, then delete them en masse after evaluations.