Why not many2one with pk array type



This leads to a question.
One way to model many to one is for the attacher
table to hold a foreign key to the attachee table.

Why couldn't some relational database support
a new data type, which would be an array of
numerical foreign keys?

If you wanted to associate 6 separate specimen table
instances to an experiment table, for instance, the
specimen table might hold a foreign key pointing
back to the experiment table.
Or you might use a junction link table, where the experiment
and specimen tables remain completely independent,
and the schema makes use an 'specimen_list' table
that holds foreign keys to both the experiment table and the
specimen table.

Or, and this is my question, why couldn't the experiment
table hold an array of ints, that are foreign keys pointing to
the specimen table?

Why do that? Automated mapping of GUI components to
schema is easier when the schema is tree-like....where
a program can start at the top of a structure and follow
downward links to all the related data. That tree-like organization
can't model everything, but it can model most data problems,
and it is a hell of a lot easier to deal with GUI-wise. So what
am I missing? Is there some catch22 logical error in the
foreign key array idea? It would make relations look more like XML.

.



Relevant Pages

  • Re: Why not many2one with pk array type
    ... > One way to model many to one is for the attacher ... No reason in principle why you can't have an array type column in an ... array structure as if it were a set of foreign keys would add an extra ... > schema is easier when the schema is tree-like....where ...
    (comp.databases.theory)
  • [ann] SST (SQL Schema Transformer) Project
    ... I've just released the first public release of SST(SQL Schema ... SST is a Common Lisp program that transforms an s-expression ... Invalid FOREIGN KEY reference detection. ...
    (comp.lang.lisp)
  • Re: circular relationships ok?
    ... In other words, a database schema consisting of the relation schemata, ... and the foreign key constraints, ...
    (comp.databases.theory)
  • Re: Foreign key constraints from DB at runtime
    ... OleDbConnection object, and then use the GetOleDbSchemaTablemethod to get ... This will get you all the foreign key definitions inside the schemaTable ... I'm trying to detect them from the database's schema. ... foreign key constraints to other tables. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Business objects, subset of collection
    ... SQL works on not normalised data ... foreign key (vehicleid) references vehicle ... And who did the poor schema design, ...
    (comp.object)