Re: Dazed and Confused
- From: "Jeff Boyce" <JeffBoyce_IF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 6 Jan 2007 11:40:43 -0800
Nanette
see comments in-line below...
"Nanette" <Nanette@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:34118449-ED0E-42AB-88BD-2272DEF0AF19@xxxxxxxxxxxxxxxx
One to Many or Many to Many Relationship, and how do I connect the data?on
After many attempts, I'm still not sure, so...
I have a Requisition Table and a Reqisition Detail Table. Each Reqisition
will contain many parts numbers and many of the same part numbers will be
multiple Requisitions.
So, a given Requisition might have many Parts (i.e., part numbers), and a
given Part may show up in many Requisitions? If so, you need three tables:
Requisition, RequisitionDetail, Part.
I also have a Purchase Order Table and a Purchase Order Detail Table. Each
Purchase Order will contain many part numbers and many of the same part
numbers will be on multiple Purchase Orders. (The Purchase Order Table
contains a Line Item Number, that, when combined with the Purchase Order
Number creates a unique number for that specific part instance.)
I didn't get that last explanation, but this sounds analogous to the
previous ... 1 - m - 1 (three tables: PurchaseOrder, PurchaseOrderDetail,
Part)
the
I also have a Parts Table and a Part Details Table. This was created at
beginning after acceptance of the proposal. It contains all the partnumbers
and their details and is used as a baseline so we can track changes in
pricing and quantities in conjunction with the Purchase Orders and
Reqisitions.
I don't get this. What kind of "part detail" information are you saving?
Purchase
The process is to create a reqisition first, followed by creating a
Order second. Although, sometimes a Requisition is not created and therewill
only be a Purchase Order.
So, a given Requisition can have how many PurchaseOrders? None (it sounds
like), one, many? This will determine the relationship between these two.
Question One: Do I really have a many to many relationship between the
Requisition and Parts Tables and a many to many relationship between the
Purchase Order Table and the Parts Table?
It sure sounds like it.
conjunction
Question Two: How do I connect/keep track of each Part Number in
with its respective Requisition Number and Purchase Order Number?
If I understand your data/relationship, you could use a query that joins the
tables together on their respective IDs, then selects for PartNumber.
--
Regards
Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
Microsoft Registered Partner
https://partner.microsoft.com/
.
- Follow-Ups:
- Re: Dazed and Confused
- From: Nanette
- Re: Dazed and Confused
- Prev by Date: Re: Database Properties : Date Created vs DateCreated
- Next by Date: Re: Contacts Tables
- Previous by thread: Contacts Tables
- Next by thread: Re: Dazed and Confused
- Index(es):
Relevant Pages
|