handlebars
Technical User
I am a junior database developer and have managed to get myself totally stumpted with a database system for a council department.
The problem i am having is structuring the tables for a tendering process, where a list of items is selected for a job and using current prices for each supplier - the users need to be able to create two estimates based on these.
Although the items and quantities are the same for both suppliers, their are different discounts that can be applied on the whole order for each supplier.
I understand that I have to have a many to many relationship between estimates and suppliers (as one estimate always has many suppliers; each supplier has many estimates).
The other issue is that prices are changed every few months, but price history must be retained.
I know this is a simple overview of the system, that may have lots of other intricacies, but in essence i need to know if their is an standard way of modelling this without having to use lots of messy append queries (which is the only way I can acheive this at present!)
What I am hoping the best structure will allow is for users to create the tender list and add the relevent discounts for the two suppliers and the query could lookup the current item prices for the two different suppliers and return a total estimate cost.
I accept that what i am looking for may be impossible, but it would be very nice to get some feedback from anyone that has dealt with this type of problem before.
Thanks in advance
Andrew
The problem i am having is structuring the tables for a tendering process, where a list of items is selected for a job and using current prices for each supplier - the users need to be able to create two estimates based on these.
Although the items and quantities are the same for both suppliers, their are different discounts that can be applied on the whole order for each supplier.
I understand that I have to have a many to many relationship between estimates and suppliers (as one estimate always has many suppliers; each supplier has many estimates).
The other issue is that prices are changed every few months, but price history must be retained.
I know this is a simple overview of the system, that may have lots of other intricacies, but in essence i need to know if their is an standard way of modelling this without having to use lots of messy append queries (which is the only way I can acheive this at present!)
What I am hoping the best structure will allow is for users to create the tender list and add the relevent discounts for the two suppliers and the query could lookup the current item prices for the two different suppliers and return a total estimate cost.
I accept that what i am looking for may be impossible, but it would be very nice to get some feedback from anyone that has dealt with this type of problem before.
Thanks in advance
Andrew