Data Modeling - Cardinality

1 - About

The cardinality is way to define the relationship between two entity in a data model :

Cardinalities further describe a join between 2 entity by stating how many rows in one entity will match rows in an another (It defines the minimum and maximum number of occurrences of one entity for a single occurrence of the related entity).

Cardinality is not a number; it is a range Iordan Iotzov

3 - The cardinality between two entities define the relationship

The cardinality of one data table known as :

  • left table
  • inner table
  • of local table

with respect to another data table known as :

  • right table
  • outer table
  • of remote table

define the type of relationships.

Left table cardinality Right table cardinality Type of relationship
Min Max Min Max
1 1 1 1 one-to-one
0 1 1 1 optional on one side one-to-one
0 n (or *) 0 n (or *) optional on both sides many-to-many
1 1 1 n (or *) one-to-many
  • Min = Minimum count of row
  • Max = Maximum count of row

4 - Cardinality Symbol

Cardinality Min Instance Max Instance Graphic Notation
Exactly one 1 1
Zero or one 0 1
One or more 1 many (>1)
Zero, one, or more 0 many (>1)
More than one >1 >1
Cardinality symbol Example Description
Arrow Arrow indicates the “one” direction of the join. If cardinality is 1,1 then an arrow head is shown at each join end.
Parity Crow's foot indicates the “many” end of the join. If cardinality is 1,1, then a straight line is shown.
1,N Cardinality symbol Example Description Cardinality is shown as a ratio at each end of the join.
  • Bookmark "Data Modeling - Cardinality" at del.icio.us
  • Bookmark "Data Modeling - Cardinality" at Digg
  • Bookmark "Data Modeling - Cardinality" at Ask
  • Bookmark "Data Modeling - Cardinality" at Google
  • Bookmark "Data Modeling - Cardinality" at StumbleUpon
  • Bookmark "Data Modeling - Cardinality" at Technorati
  • Bookmark "Data Modeling - Cardinality" at Live Bookmarks
  • Bookmark "Data Modeling - Cardinality" at Yahoo! Myweb
  • Bookmark "Data Modeling - Cardinality" at Facebook
  • Bookmark "Data Modeling - Cardinality" at Yahoo! Bookmarks
  • Bookmark "Data Modeling - Cardinality" at Twitter
  • Bookmark "Data Modeling - Cardinality" at myAOL
data_modeling/cardinality.txt · Last modified: 2016/12/28 23:48 by gerardnico