in reply to Re^3: (OT) Why SQL Sucks (with a little Perl to fix it)
in thread (OT) Why SQL Sucks (with a little Perl to fix it)
Thanks, thats an interesting example. Just out of curiosity why do you calculate such totals from an accounts-receivable table? Wouldn't it be easier to have a seperate totals table and update it every time a new record was added? Either in a transction explicitly do two updates, or use a trigger on the accounts-receivable table that does it automatically....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: (OT) Why SQL Sucks (with a little Perl to fix it)
by tilly (Archbishop) on Dec 14, 2005 at 17:24 UTC |