24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE LOGICAL MODEL<br />

• Relationship Type > Non-Identifying, Mandatory Relationships: Non-identifying relationships propagate the<br />

parent's primary key to the non-key attributes of the child. A foreign key value must exist in the child entity and<br />

the foreign key value must be found in the primary key of the parent.<br />

The cardinality of a mandatory relationship must be in the form of one to something.<br />

When generating a physical model, foreign key columns propagated by a mandatory relationship default to NOT<br />

NULL.<br />

• Relationship Type > Non-Specific Relationships: Non-specific relationships denote many-to-many<br />

relationships. Because many-to-many relationships cannot be resolved, non-specific relationships do not<br />

propagate any foreign keys. Many-to-many relationships are undesirable and should be removed as you<br />

normalize your data model.<br />

The following illustrates a non-specific relationship where the parent and the child are both optional. In the<br />

Relationship Editor you can specify whether the parent and the child are optional or mandatory.<br />

• Cardinality: Cardinality displays the ratio of related parent and child instances. The cardinality ratio for the parent<br />

depends on whether the relationship is mandatory or optional. Although cardinality is a powerful concept for<br />

expressing business rules, you should know that no database can directly enforce cardinality. Enforcing<br />

cardinality constraints can be accomplished through procedural database logic or somewhere other than in the<br />

database.<br />

The iconic cardinality representations for IE (Crows Feet) notation are illustrated below:<br />

Identifying<br />

Relationship<br />

Non-Identifying Relationship<br />

Optional Mandatory<br />

One to Zero or More Zero or One to Zero or More One to Zero or More<br />

One to One or More Zero or One to One or More (P) One to One or More (P)<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!