Database design
Date: Thu, 29 Jul 2004 11:50:41 +0200
Message-ID: <UJ3Oc.5451$v04.83560_at_news2.e.nsc.no>
We need to create a lookup structure that can contain a flexible amount of
attributes.
We have discussed different design solutions for lookup-functionality, and
come up with this suggestion:
The "lookup" structure will be defined by three tables. The "Element" table,
the "Attribute" table and the "Value" table.
I will specify with an example:
This creates a very flexible structure that can store many different types
of lookup-elements with different demands when it comes to number of
attributes("columns"). The structure supports an infinite number of
attributes.
The alternative is the more usual structure with two tables. The "Element"
and the "Value" tables.
Any comments, thoughts and suggestions would be appreciated.
Received on Thu Jul 29 2004 - 11:50:41 CEST
The "Value" table will contain the actual attribute-values, one row for each
value(3 rows for each vendor)
On the downside this will potentially create a huge number of rows in the
we think we will ever need.
