I once had a code that said update table set netamount=variable, vatamount=grossamount-variable where id = xxx With variable being a calculated amount. This worked great until the variable at some point was a negative amount and I learned how comments work in SQL.
View all comments
1
u/UpvoteForGlory Oct 14 '25
I once had a code that said update table set netamount=variable, vatamount=grossamount-variable where id = xxx With variable being a calculated amount. This worked great until the variable at some point was a negative amount and I learned how comments work in SQL.