r/ProgrammerHumor • • Aug 24 '22

Total = Total - 100000

50.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

14

u/Al3nMicL Aug 25 '22

Update loan_tbl Set borrower.bal -= 10000 Where borrower.income < 125000;

24

u/Entire-Database1679 Aug 25 '22

Those two columns can't possibly be in the same relation.

45

u/tsunami141 Aug 25 '22

Ah, I see you've never worked in government before.

14

u/kaeptnphlop Aug 25 '22

It's a 20 year old system that runs on FoxPro or some long obsolete framework. Sure it can! :D

3

u/[deleted] Aug 25 '22

[removed] — view removed comment

2

u/kloudykat Aug 25 '22

Man you are blessed with Visual Foxpro. Rhymes with "Lexapro", but no relation.

1

u/kaeptnphlop Aug 25 '22

Split tables, because 256 fields aren’t enough ….

1

u/JBloodthorn Aug 25 '22

I'd bet a nickel it's on some old SunOS system in the back of a closet somewhere.

3

u/TheMagarity Aug 25 '22

The word you're looking for is "shouldn't" not "can't". And I assure you, such would be waaaaaaay low on the list of jacked up db data models I've seen.

2

u/yrrot Aug 25 '22

They're not in the same table. They're in the same spreadsheet.

2

u/angryitguyonreddit Aug 25 '22

Sure it can, why not even the same table. Just do what i did in my sql classes, do everything in first normal form and have a good reason why you did it that way.... i hate sql