|
|
|
|
|
by sjwright
4922 days ago
|
|
> As soon as you start having constraints such as "from date must be before to date" and "the quote must have at least one line, and these lines should sum to > 0 and < 1000000" then relational modelling fails. Hard. Really? Both those problems are insanely trivial to solve with one or two SQL statements. Your second and third criterium are perfect candidates for relational modelling; the first is so trivial it beggars belief. |
|
How do you enforce that two transactions don't delete the last quote_line at the same time?
And how would you enforce that the sum of the quote_lines is correct with multiple writers?
Not saying it can't be done easily, but I'd love to hear how.