Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: For the SQL Gurus out there, a question
Anith Sen wrote:
>>>All many-to-many relationships must be resolved when moving from a
A typical many to many relationship would be ... a student can be in many classes and a class has many students. This is true in the logical model but should never be implemented in a relational database using two tables: Rather using three.
STUDENT ... PK = person_id
CLASS ..... PK = class_id
STUDENT_CLASS (intersecting entity) ... PK person_id and class_id.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Sun Feb 08 2004 - 16:12:38 CST