Re: Examples of SQL anomalies?
Date: Wed, 02 Jul 2008 11:54:37 -0700
Marshall <marshall.spight_at_gmail.com> wrote:
Actually, I am discussing a real life situation where I got burned by SQL.
I started the issue of the sum of possibly zero invoices from the point of view of the company invoicing. If I want a report of the total amounts invoiced to various clients during a month, the answer for a given client is unlikely to be zero, because our clients pay a base fee. However, if I ask the similar question restricting to fulfillment work orders, the answer for a given client can easily be zero. Whether it is because:
- we do not do fulfillment processing for that client,
- we do not do that much fulfillment processing for that client and as it happened none that month,
- we do usually do fulfillment processing for that client, but did not charge for some reason,
- the month specified has not been invoiced yet, or
- any other reason is irrelevant to the original question. The amount invoiced at time of report is zero. That might well prompt the question "Why is it zero?", but that is a different question.
Attempts by Mr. Celko and other to make a quite simple issue complicated are nonsensical.
Computerese Irregular Verb Conjugation:
I have preferences. You have biases. He/She has prejudices.Received on Wed Jul 02 2008 - 20:54:37 CEST