Design Issues Ermodel.docx
Design Issues Ermodel.docx
Here are some of the issues that can occur while ER diagram design process:
Now if we compare the two cases we discussed above, in the first case we can say
that the student can have only one student id, however in the second case when we
chose student id as an entity it implied that a student can have more than one
student id.
Let’s take an example to understand it better: A person takes a loan from a bank,
here we have two entities person and bank and their relationship is loan. This is
fine until there is a need to disburse a joint loan, in such case a new relationship
needs to be created to define the relationship between the two individuals who
have taken joint loan. In this scenario, it is better to choose loan as an entity set
rather than a relationship set.
The n-ary relationships can make ER design complex, however the good news is
that we can convert and represent any n-ary relationship using multiple binary
relationships.
This may sound confusing so lets take an example to understand how we can
convert an n-ary relationship to multiple binary relationships. Now lets say we
have to describe a relationship between four family members: father, mother, son
and daughter. This can easily be represented in forms of multiple binary
relationships, father-mother relationship as “spouse”, son and daughter relationship
as “siblings” and father and mother relationship with their child as “child”.