Can you give an example ? That may clarify what you want to achieve.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Okay, why not create a table deliverers with their info and a link table deliverer_product_price.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Why would that be bad? Your deliverers and products have their own detail table and the link table contains the price. Do you really want a table that contains only an Id and a Price, so each price can exist only once ? That's not really functional, although that would be the fully normalized version. Unless there are some things you want to add to the price later, but you did not specify that.
Is a product delivered by 2 deliverers identical and only different in price ? Or are there more differences you did not mention yet.
Well, since you quote me, you know Donald was speaking of optimizing code (algorithms in particular), not DB designs.
But anyway, since you probably don't want advice from a wannabe db designer, I won't bother you again.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
No need to apoligize. We were both just defending our own ideas, based on different views of the problem. You being the one with the most information. I must admit, if I knew after your question what I know now, I probably wouldn't have bothered replying. I'm a coder and really hate database design/normalization. The only reason I have to do it is because nobody does it for me (at my current job).
I'll let this be my last post in this thread, because I don't want to get in over my head ;D Good luck finding a suitable solution.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875