Re: Multiple-Attribute Keys and 1NF




"JOG" <jog@xxxxxxxxxxxxx> wrote in message
news:1188327226.729673.127810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Okay, sure. But then to be able to query for green and yellow
individually one must employ a further relation encoding two more
propositions that state "'Green and yellow' contains 'Green'" and that
"'Green and yellow' contains 'Yellow'" respectively. One then has a
schema with two domains - one for the composites and one for
individual colours (which is what I was inferring when I initially
said a new one was being added).

It took me a while to realize that what you meant from your original
description was that
"a green and yellow wire means earth". I had thought you meant "a green
wire means earth" and "a yellow wire means earth". Pardon me for being
dense.

Clearly what we have here is not a domain of colors, but a domain of color
codes, where a color code contains one or more colors, and maybe a "thick
or thin" qualifier on each color.

It's not clear to me why you need to able to query on simple colors, unless
you need to decompose the color coding scheme into its constituent parts for
some reason.

There are lot of code domains where each code is made up of a set of more
primitive elements.
Perhaps a very relevant one might be "character code". If I have the
following primitive elements:

B1, B2, B4, B8, B16, B32, B64, B128
(which might be an odd way of labelling bits 0 through 7 of a byte), I can
think of the character code for 'A' as being B64+B1. Now I could query on
all the character codes without necessarily having an operator that would
yield "all the codes that include B1".

I think that the colors, as constituents of color codes, play the same role
as bits, as constituents of character codes. Do you agree?



.



Relevant Pages

  • Re: Multiple-Attribute Keys and 1NF
    ... wire means earth" and "a yellow wire means earth". ... codes, where a color code contains one or more colors, and maybe a "thick ... Perhaps a very relevant one might be "character code". ...
    (comp.databases.theory)
  • Re: update query for multiple changes to a single field
    ... the call_type filed will have a 1 or 2 character code for each record in the ... i want to do a single pass update that will change the codes to: ... i know i can just change the criteria in the grid for each code and run the ... query multiple times, but with approximated 100 codes to change that could ...
    (microsoft.public.access.queries)
  • Re: Electrics Question
    ... > neutral and a Green/Yellow earth.. ... > What is worse is that this is alowed to co-exist with the old codes. ... installation isn't allowed. ...
    (rec.arts.theatre.stagecraft)
  • Re: Multiple-Attribute Keys and 1NF
    ... as constituents of character codes. ... of course I understand your point - a wire can be viewed as having ...
    (comp.databases.theory)