Lookup tables and table relationships

G

GeorgeMar

I am wondering if it is more efficient to have a number of
lookup tables or one lookup table for the whole database.

For example, I may have separate lookup tables:
tblAssetType, tblAssetModel and tblAssetManufacturer, and
the relate each of these tables to the one tblAssets table.

On the other hand I could have the tblAssets table and one
tblAssetlookup table with Type, Model and Manufacturer
identified in a third field in the lookup table. When
relating them, I have tblAssets and tblAssetLookup,
tblAssetLookup1 and tblAssetLookup2

The latter scenario reduces the number of lookup tables I
will have.

How will that impact the database and the network traffic?

many thanks for your help
george
 
A

Allen Browne

Hi George

Either design is acceptable. Both can be useful in different circumstances.

My personal preference is to use different tables: it keeps the relational
integrity tight (i.e. you cannot choose a lookup value that does not apply).
Some other developers prefer to keep the table count down as it simplies the
design. I doubt there is any significant difference to network traffic
either way.
 
G

GeorgeMar

Thank you Allen

george
-----Original Message-----
Hi George

Either design is acceptable. Both can be useful in different circumstances.

My personal preference is to use different tables: it keeps the relational
integrity tight (i.e. you cannot choose a lookup value that does not apply).
Some other developers prefer to keep the table count down as it simplies the
design. I doubt there is any significant difference to network traffic
either way.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top