I am developing my first database for MySQL, and the idea is that we have orders that may contain several different elements. Therefore, I decided to save the order with all the necessary information in one table, elements in another, and then create a third table in which each ordered element is stored. Of course, every time I need to list an order, I will first need to find every OrderedItemsID for which the OrderID matches the OrderID I need and what corresponds to this element.
Now, since this is my first DB design, I'm not arrogant enough to think this is a good solution, so I was wondering if anyone knows a good solution for this kind of problem? Thanks
image is at http://img211.imageshack.us/img211/5575/stackoverflowq.png
user263262
source
share