Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Insert excerpt
_Banners
_Banners
nameERD
nopaneltrue

On this page:

Table of Contents
exclude^On this page$|^Further Reading$|

Relationships Between Tables 

Tables in PhixFlow are relational, which means that information in one table can be related to information in another table. Data can then be accessed in many different views without requiring duplication. See Creating Dashboards and Reports (Charts and Graphs).

A line connects the Primary Key or Secondary Key of one table to a Foreign Key in a different table and represents a relationship. See Relationship Click on the image below to enlarge it.

One-to-Many and Many-to-One Relationships

The relationship line between a Primary Key or Secondary Key and Foreign Key represents a one-to-many relationship. In the below example, one teacher runs many courses.

A many-to-one relationship is implied when you read a relationship in the opposite direction. In the below example, many courses are run by one by one teacher. Click on the image below to enlarge it. 


Many-to-

Many 

Many Relationships

Many-to-many relationship can be supported with an intermediate table.

Expand
titleClick here to see more

many-to-many relationship is created when there is an intermediate table with a Foreign Key from each of the related tables. In the example used above, many students take many courses, and so a many-to-many relationship is created using the intermediate table, CourseAttendee.

Multi-Hop Relationships

Multi-hop relationships are relationships between tables without a direct relationship. PhixFlow supports multi-hop relationships to a distance of 4 hops. In the example ERD below, the relationship distance between the Buildings and Bookings table is 2 hops, and between the Buildings and Departments table is 4 hops.

Image Added

Creating Multi-Hop Views


Further Reading