Data Modeling - Relationships

About

The relationship is the core aspect of a relational database.

For instance, a many-to-one relationship is a link between two entities when one entity has a foreign key that references the primary key of another entity.

All relationships are implicitly bidirectional, meaning that they can interpreted in both directions.

When you have foreign key that NOT references the primary key of another table, the database has not enforced referential integrity.

In a data model, two main relationship are used :

but you can found other types as :

To describe precisely the type of relationship in a data model, you use the cardinality.

A relationship is a description in a business document that has a verb that relates two entity types:

  • has
  • consists of
  • uses

Articles Related

Recursive relation

Pretend the recursive relation is between two tables, the real one and a virtual copy.

In this case, a manager table and an employee table.

  • Bookmark "Data Modeling - Relationships" at del.icio.us
  • Bookmark "Data Modeling - Relationships" at Digg
  • Bookmark "Data Modeling - Relationships" at Ask
  • Bookmark "Data Modeling - Relationships" at Google
  • Bookmark "Data Modeling - Relationships" at StumbleUpon
  • Bookmark "Data Modeling - Relationships" at Technorati
  • Bookmark "Data Modeling - Relationships" at Live Bookmarks
  • Bookmark "Data Modeling - Relationships" at Yahoo! Myweb
  • Bookmark "Data Modeling - Relationships" at Facebook
  • Bookmark "Data Modeling - Relationships" at Yahoo! Bookmarks
  • Bookmark "Data Modeling - Relationships" at Twitter
  • Bookmark "Data Modeling - Relationships" at myAOL
 
data_modeling/relationship.txt · Last modified: 2010/06/12 21:18 by gerardnico