Re: boolean datatype ... wtf?
Date: Fri, 1 Oct 2010 15:24:34 -0700 (PDT)
Message-ID: <2e7c87b1-d747-4a1b-b633-327fde1614e6_at_f6g2000yqa.googlegroups.com>
On 1 okt, 23:29, Gene Wirchenko <ge..._at_ocis.net> wrote:
>
> I do not want the exponential explosion if I have customers with
> boolean attributes. In my client billing system, there are two:
> whether the client billing is PDF only and whether they pay by credit
> card transaction where we process a payment after a delay if we have
> not heard otherwise.
>
> Why would I want to split the client table into four tables?
>
> [snip]
>
> Sincerely,
>
> Gene Wirchenko
Similar observations apply to "customer's preferred mode of payment".
When I was a "young Turk" in IT land, I formulated my own design principle : "codes are poor, entities are rich". What I meant by that is that "A boolean is a piece of 'codified' information, and therefore it doesn't convey much information after all. A separate entity (ER terminology, relational equivalent being 'a separate relvar' holding particular tuples) allows for specifying WHY that boolean piece of information happens to be true.".
Oh, and I am very much aware of the case where legislation does not allow you to actually be 'aware' of 'the reason why'. Received on Sat Oct 02 2010 - 00:24:34 CEST