| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: foundations of relational theory?
Oops! "Bob Badour" <bbadour_at_golden.net> was seen spray-painting on a wall:
> "Christopher Browne" <cbbrowne_at_acm.org> wrote in message > news:bmalt8$k7ps6$2_at_ID-125932.news.uni-berlin.de...
> > The latter is as horrible, if not more horrible, than the former. It > relies on relative position to identify items enormously increasing > complexity for no benefit whatsoever.
No, the XML equivalent to a "not-even-1NF" representation of this would be
<employee>
<id>100</id> <name>Christopher Browne</name> <addressid>171</addressid> <child1>Billy</child1> <child1birth>2000-01-17</child1birth> <child2>Sally</child2> <child2birth>2000-02-22</child2birth> <child3>Jerry</child3> <child3birth>1997-11-07</child3birth>
That involves something worse than "positional" indications of things.
It might make sense to enforce that the dates have to be in increasing order, and certainly that you wouldn't populate <child2> unless <child1> was populated. Expressing that in a DTD or XML schema would be pretty hideous, and unnecessary if a better representation was used.
The representation that I suggested earlier... <children>
<child> attributes for child </child> <child> attributes for another child </child> <child> attributes for still another child </child></children>
Is certainly NOT horrible in the ways that the "worse-than-1nf" presentation with child1, child2, child3 is. It is NOT "positional;" it doesn't forcibly need to matter which child is in which position, in much the same manner that SQL result sets are not _necessarily_ returned in any order.
>> That's not terribly different from what Pick-like systems would do;
>> they would happily stick the multiple children into the table with
>> the parent, and have a treatment for having varying numbers of
>> children.
>
> By pick-like, do you mean primitive file processors?
No, by "Pick-like," I mean systems that allow having nested tables.
I apparently don't have your need to insult people for finding Pick useful to their needs.
-- (reverse (concatenate 'string "moc.enworbbc" "@" "enworbbc")) http://www.ntlug.org/~cbbrowne/linuxdistributions.html Unix *is* user friendly. It's just selective about who its friends are...Received on Sun Oct 12 2003 - 20:07:26 CDT
![]() |
![]() |