help identify a primary key and discover its attributes. Each key attribute is called acandidate key.
Simple: Defines an attribute that has been reduced to its smallest possible granularityand is completely dependent on the primary key for values. Each simple attribute musthave a value.
Derived: Defines an attribute derived from the values of one or more attributes. Theseattributes are dependent on other attributes in the data model for their values.
Foreign Key (FK): Defines a single attribute or a set of attributes that are primary keysfor another entity. These are the key attributes that migrate to another entity in a datamodel.The different types of entities are:
Core: Describes the entities in a data model on which the business rules are applied.The core entities are also called the primal entities. They can be dependent orindependent. The core entities identify the entity classes that can be reused in a datamodel. All core entities are extensively reused to implement standardization, reduceimplementation time, and minimize changes or errors.
Code: Describes independent entities. They are also called reference entities. Thevalues assigned to the attributes of the code entities identify unique instances of therecord values in a database.
Subtype: Describes dependent entities. They are used to store a different set ofattributes for the same entity. The siblings of the subtype entity are related to theirparents using an inclusive or exclusive relationship.
Associative: Describes the entities that have primary keys that are composite andconsist of values from two or more entities. These entities help resolve a many-to-manyrelationship in which many instances of one entity are related to many instances ofanother entity.
Redundant: Describes the entities that have different names but contain information onthe same object. These entities are used when a role is modeled for an entity.
Overloaded: Describes the entities that contain information on multiple objects in adata model. These entities do not have values for each of their attributes.
Relationships in a Database
In ERwin, relationships are illustrated using a verb phrase that defines how the two entitiesare related to each other and a line that connects the two entities. The identifyingrelationships are represented in the logical model and the physical model using one or moreforeign key attributes.The cardinality of a relationship is the number of child and parent entities related by therelationship. The degree of a relationship is the number of attributes related to each other inany two entities. When the degree of a relationship is unary, an instance of the entity isrelated to itself. This is also called a recursive relationship. The direction of a relationshipindicates the originating entity in a binary relationship. The originating entity is called theparent entity and the terminating entity is called the child entity.The different types of relationships are:
Identifying: Defines a relationship that identifies instances of child entities based on thevalues of the attributes in a parent entity. The child entity is dependent on the parententity.
Subtype: Defines a relationship that relates a parent entity to one or more childentities. This type of relationship identifies one or more instances of an attribute set inthe child entities. If there is only one child entity, the relationship is called exclusive. Incase there is more than one child entity, the relationship is called inclusive.