Frank said:
I have a Query which stores the prices
charged by suppliers.
I need to keep a record of price
fluctuations, so this would mean storing any
changed prices somewhere.
Can someone point me in the right direction
to do this; would it mean a special table?
Please help, Frank
Hi Frank,
Just to reduce confusion, let's say firstly that queries do not "store"
anything. Table store information, and queries retrieve the stored
information.
You would like to track varying part prices over time? Does a part have
one or more suppliers? Does a supplier provide one or more part?
Assuming all three questions are "yes", you need three tables to manage
this.
One, a Suppliers table. In this table you include information only about
suppliers. Name, address, phone number, etc.
Two, a Parts table. This speaks only to parts, /without regard to
suppliers/: Description, (your) part number, assembly, etc.
Third, the "special table": This table joins the relationships between
suppliers and parts. Call it "SuppliersParts". It contains foreign keys
to identify the particular supplier and part combination, plus (getting
back to your original question) a price and effective date.
Now you can track the fluctuations of a Part price over time, by each
supplier.
Does this help?