Transformation Rules (Cont.)


Transformation Rule 3. N-N Relationships
When two entities E and F take part in an N-N relationship R: Below shows the many-to-many relationship, work, where an employee must work on at least one project, and a project could have no one working on it (idle).

The table work includes two columns from the primary keys of the two entities employee and project, and one column from its attribute percent.
employee
eid staddress city state zipcode
197 7 Beacon St Boston MA 02122
221 19 Brighton St Boston MA 02103
303 153 Mass Ave Cambridge MA 02123
... ... ... ... ...

project
prid project_name due_date
p11 Phoenix 3/31/22
p13 Excelssir 9/31/21
p21 White Mouse 6/30/21
... ... ...
work
eid prid percent
197 p11 50
197 p13 25
197 p21 25
221 p21 100
303 p13 40
303 p21 60
... ... ...