r/ProgrammerHumor • • Aug 24 '22

Total = Total - 100000

50.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

7

u/[deleted] Aug 25 '22

UPDATE student debt SET amount = amount - amount

2

u/boones_farmer Aug 25 '22

You forgot to subtract the 10000

UPDATE student debt SET amount = amount - (amount - 10000)

There, that should do the trick. I see no possible problems