Jochem wrote:
> After doing a simple division by 2.20371, your balance doesn't quite
> balance anymore.
You mean do the division in the sql? Thats something I would never
do, personally. I only like to use the db for a container and pretty
much handle all logic outside of it; only storing derived results. I
would make sure my field spec is capable whatever I fed it, and if
there was some issue like rounding currency properly I would handle
that in the application layer.
I know this isn't a universal preference, and if I recall correctly
doing this sort of thing in SQL is faster. I found that long, long
ago my life in debugland was a lot easier if I kept my logic all in
code and nowhere near the db. May be an outdated viewpoint.
--
--Matt Robertson--
MSB Designs, Inc.
mysecretbase.com
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- RE: Access alternatives (WAS: Security gurus o... Micha Schopman
- Re: Access alternatives (WAS: Security gu... Scott Stroz
- Re: Access alternatives (WAS: Securit... Peter Farrell
- Re: Access alternatives (WAS: Sec... Jochem van Dieten
- RE: Access alternatives (WAS: Sec... James Smith
- RE: Access alternatives (WAS: Security gurus o... Dave Watts
- Re: Access alternatives (WAS: Security gu... Peter Farrell
- Re: Access alternatives (WAS: Securit... Matt Robertson
- Re: Access alternatives (WAS: Sec... Massimo, Tiziana e Federica
- Re: Access alternatives (WAS: Sec... Jochem van Dieten
- Re: Access alternatives (WAS:... Matt Robertson
- Re: Access alternatives ... Paul Hastings
- Re: Access alternati... Matt Robertson
- Re: Access alternati... Paul Hastings
- Re: Access alternatives ... Jochem van Dieten
- RE: Access alternati... Mark A Kruger
- Re: Access alternatives (WAS: Securit... Claude Schneegans
- RE: Access alternatives (WAS: Security gurus o... Dave Watts
- RE: Access alternatives (WAS: Security gurus o... Micha Schopman
- RE: Access alternatives (WAS: Security gurus o... Micha Schopman