(Msg. 2) Posted: Fri Aug 14, 2009 8:32 am
Post subject: RE: table relationships [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
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.
(Msg. 3) Posted: Fri Aug 14, 2009 11:35 am
Post subject: Re: table relationships [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Lori" <Lori.RemoveThis@discussions.microsoft.com> wrote in message
news:ADBE18D4-4CDD-40FC-98A5-50FC534B9A99@microsoft.com...
>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.
(Msg. 4) Posted: Fri Aug 14, 2009 11:39 am
Post subject: Re: table relationships [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum