A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

table relationships



 
 
Thread Tools Display Modes
  #1  
Old August 14th, 2009, 04:10 PM posted to microsoft.public.access.tablesdbdesign
Lori
external usenet poster
 
Posts: 673
Default table relationships

I have managed to relate two tables but I am having trouble relating my other
tables. I need help with many to many relations.... I think.
  #2  
Old August 14th, 2009, 04:32 PM posted to microsoft.public.access.tablesdbdesign
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default table relationships

You fix Many-To-Many joins by adding a third bridging or linking table. For
example an Assembly can have many Parts. Also a Part can be used in many
Assemblies. This is a classic M-M relationship and relational databases work
best with 1-M relationships.

This third bridging or linking table has foreign key fields for something
like the PartNo from the Parts table primary key and AssemblyID which matches
the Assembly table primary key. This combination could be the primary key for
the table or at least a unique index to prevent duplicates. You could also
have a field for PartCount as an Assembly could use dozens of the same screws
for example.

With this bridging or linking table, you can ask questions in both
directions such as “this assembly uses which parts” or “this part is used on
which assemblies” by joining the three tables together in a query
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"Lori" wrote:

I have managed to relate two tables but I am having trouble relating my other
tables. I need help with many to many relations.... I think.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.