newbie question on database design

rpatel3680

New Member
Joined
Apr 8, 2004
Messages
12
I am totally new to this database stuff so please tolerate me.

I have 3 tables:

PrimarySite:
---------------
PID
SiteName
Abbreviation

SecondarySite:
-----------------
SID
SiteName
Abbreviation

TertiarySite:
---------------
TID
SiteName
Abbreviation


each table has unique entries(no duplicates). but primarysite might have multiple secondarysite linked to it. and the secondarysite might have multiple tertiarysite linked to it.

so sample data would be primarysite: hand, secondarysite: nail, tertiarysite: left
and primarysite: foot, secondarysite: nail, tertiarysite: left

how would i link the tables together so that no entries are duplicated but are linked properly? should i create a separate table linking PID to SID? or is there an easier way?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Tables that you have:

PrimarySite(PID,SiteName,Abbreviation)
SecondarySite(SID,SiteName,Abbreviation)
TertiarySite(TID,SiteName,Abbreviation)

Additional tables that you need:

PS(PID,SID)
ST(SID,TID)

Keys are in bold.

You need to link these tables thru Tools|Relationships (preferably before filling in the tables).
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,442
Members
451,705
Latest member
Priti_190

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top