Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Design Issues - Urgent

Status
Not open for further replies.

samosa

Technical User
Jul 15, 2005
38
IT
I inherited a table that was poorly designed.
No primary key and several duplications.
For instance, each table has id has several values.
I broke the tables into 3 - master table with unique entries, the other 2 tables with duplicate entries.
Now, I know I have to design it with 1:m relationship but the problem I am having is that while the master table has unique values for instance idnum has unique values but idnum has some null values in the other 2 two tables.
Can anyone tell me how I can link these two tables with the master table?
I hope this is not confusing.
thanks in advance!
 
The only way to solve this problem is to put unique number on the first table and put that unique number on table 2 for all null, any number that you are not currently using. This way you would be able to set up a relationship, but make sure you remember this number, I always use 999, hope this helps. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top