Data Modeling - Relationships

1 - About

3 - Domain

3.1 - DBMS

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.

3.2 - Business Process

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

  • has
  • consists of
  • uses

3.3 - Between two variables

3.3.1 - Function

A function can also describe a relationship between two variables.

NHST try to find this relation.

3.3.2 - Category

3.4 - Natural Language

In a natural language such as English, there are four primary relationships:

  • condition,
  • direction
  • location
  • or time

modelled with the help of preposition.

Verbs provide a link to the condition/state of being of the subject.

coordinating conjunctions indicate the following logical relationship between sentences:

  • reason
  • addition
  • not another option
  • contrast
  • another option
  • contrasting addition
  • result

Adverbial conjunctions indicate the following logical relationship between two sentences, or phrases.

  • Addition
  • Emphasis
  • Comparison or Contrast
  • Cause or Effect
  • Time

4 - 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.

5 - Binary Relation

data/modeling/relationship.txt · Last modified: 2017/11/16 22:46 by gerardnico