Question

I am trying to create a conceptual data model using PowerDesigner, I found a conflie between two methods:

  1. Create two entities and relations between them
  2. Create an association and three entities and two relationships.

knowing that both methods give the same result on the generation of physical data model

both methods are illustrated by the following picture enter image description here

Was it helpful?

Solution

Associations and Relationships are different conceptual terms in Power-designer.

An Association is a relation between two or more entities.
An Association can have attributes.

A Relationship is a relation between two entities.
A Relationship has no attributes.

Association is more general form of Relationship.

For example:
Consider designing of a many to many relation between CustomerEntity and CreditGroupEntity
Designing the relation with Relationship will create a third table just contaning CustomerEntity primary-key and CreditGroupEntity primary-key.
Designing the relation with Association and adding a assign-date attribute to the association will create a third table contaning CustomerEntity primary-key, CreditGroupEntity primary-key and assign-date fields.

The sample you have used contains 0-n cardinal with no attributes on association, so the difference can't be seen.

Generally Association is used when the relation itself is an entity having attributes.
A relation, having no attributes is implemented by Relationship.

OTHER TIPS

Look at it as if you are trying to express something in different languages, or in different "versions" of the same language.

When you want to express "you are an idiot", you could plain say "you are an idiot", or applying the art of typical British understatement, you could say something like "I think there are certain key elements of the problem you seem to have overlooked". Those two sentences are nowhere near the same, but they might very well express the very same intended meaning.

It's just the same with ER diagramming. WHAT you want to express does not have a single unique [graphical in this case] way of expressing it. WHAT you want to express is semantics, HOW you express it is syntax. Same semantics can be expressed with different syntaxes, and that is not a bug, it's a feature !

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top