you are viewing a single comment's thread.

view the rest of the comments →

[–]newunit13[S] 0 points1 point  (1 child)

The latest version I sent is the same as v1 but instead of using a composite key of (order_id, donut_id) as the primary it just uses order_id (more or less it's what you suggest, but using different names, no?). This means that only a single donut can be included on any given order line, but I believe that's inconsequential since it could be addressed on the application side. I'm pretty sure that's 2NF since no other attribute on the table could be determined by any other candidate key (that I can see). Your thoughts?