Could someone help me with ER diagram? I need to transform ER diagram in to relational schema.
Maybe someone can do it with comments I could understand?
Could someone help me with ER diagram? I need to transform ER diagram in to relational schema.
Maybe someone can do it with comments I could understand?
For every regular entity set (single-bordered rectangle), create a relation that contains each of that entity set's attributes. The primary key of the relation is indicated in the ER diagram.
For every relationship set (single-bordered diamond), create a relation that contains the primary keys of associated entity sets, as well as any dependent attributes of the relationship set. The primary key of the relation will be composed of the primary keys of those entity sets that aren't uniquely constrained (i.e. those with m or n cardinality indicators).
I see you have relationships that have the same entity set in more than one role. In these cases, the relation will contain a component ("column") for each role.
Don't create separate relations for identifying relationships (double-bordered diamonds). These would be redundant, since the relationship can be derived from the primary key of the relation for the associated weak entity set.
For a weak entity set (double-bordered rectangle), create a relation that contains the primary key of the parent entity set, the weak key of the child entity set, and any dependent attributes. The primary key of the relation will be composed of the parent entity set's primary key together with the weak key.
I'm not going to do it for you, but if you try it and post your attempt here, I'll be happy to give you feedback. If you need further explanation of any concept I mentioned here, feel free to ask.