I'm looking for some help in decomposing a couple of many-to-many relationships for a piece of coursework...
These are the entities and their attributes I've established from the requirements specification:
Quote:
Staff: (StaffNo, Name, D.O.B. ....)
Course: (CourseCode, StaffNo, Course_Title, Course_Desc, Fee ....)
Delegate: (DelegateID, CourseCode, Reg_Type, Del_Name, ....)
Invoice: (Invoice_ID, Date_Paid, Payment_Method)
|
and here's the
un-decomposed ERD I've made using this info.
The spec states that each course is delivered by one staff member, but I've assumed that any staff member can deliver more than one course, hence the one-to-many relationship between those two entities.
However, what's completely stumped me is the relationship between Course and Delegate, as the course is obviously attended by many delegates, and the spec states that a delegate may attend multiple courses. This also applies to Invoice and Delegate, as a Delegate could potentially receive multiple Invoices, and Invoices are sent to multiple Delegates.
The question states that the M:M relationships should be
"replaced with new entity types and relationships", but
my (hair-brained) attempts to do so just don't seem right.
Tell me, am I looking at this all wrong? Any help regarding this would be hugely appreciated.
