Please help me with my table design

Thread Solved
Reply

Join Date: Jun 2009
Posts: 1
Reputation: bayangan is an unknown quantity at this point 
Solved Threads: 0
bayangan bayangan is offline Offline
Newbie Poster

Please help me with my table design

 
0
  #1
Jun 23rd, 2009
Background:
I have many tables for ex:

Nominations:
---------------
Type (there are 3 types)

WorkOrders:
----------------
Type (there are 7 types)


I have many typical tables like these. In designing database, I need to know which approach is wiser ie to make a control table for each, or to make a lookup table?

For ex:

NominationTypes:
---------------------
ID Name
-- --------
1 NominationType1
2 NominationType2
3 NominationType3


or using a lookup table

Lookups:
------------
Group Code Value
------- ------- --------
NominationTypes NT1 NominationType1
NominationTypes NT2 NominationType2
NominationTypes NT3 NominationType3
WorkOrderTypes WO1 WorkOrderType1
.
.
.
WorkOrderTypes WO7 WorkOrderType7


........

My consideration on not using a lookup value within the database is this.. User may need to customize (add or delete types) it in the future.

How usually people making their country database? Are they using a seperate table to store data or using a lookup table?

---------------

In my case, I may access these types oftenly, so in query wise, which option is best for me?

thanks for replying
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 304
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 25
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz

Re: Please help me with my table design

 
0
  #2
Jun 24th, 2009
I would recommend the "lookup table" approach. This will save you from creating many tables that serve the same purpose and it will make queries easier to build since you don't have to remember which table stores which types.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC