Your Knowledge Base is moving on 3/25/24! Our new Help Center provides all the articles you know and love (plus so much more) in a one-stop shop. Ask your SPoC for details!

Relationships

 

The main concept in a Relational Database is that each table contains one kind of record and those records are related to each other using special columns to tie them together. These special columns are known as Primary and Foreign Keys. Below is a partial representation of the table relationships centered around Contacts. (If you would like a Data Dictionary of all database tables in HTML format, email Support.)

Finding Relationships in MinistryPlatform

There is much evidence of these Primary/Foreign Key relationships in the platform. Here are three:

Advanced Search

The expandable folders in Views (Advanced Search) represent Foreign Keys. When you select these, the platform adds a JOIN to your query to get fields from related tables. The Views/Advanced Search Tool uses the Table Lookup Convention to represent table joins.

Link Navigation

The small link icons represent Foreign Keys and related tables. Clicking on these follows the relationships to pages which represent the related tables. Clicking the link next to Contact Status: Active navigates to the Contact Statuses page, landing on the record "Active".

Drop-down Menus and Pick-Lists

When editing a record, drop-down menus and pick-lists represent Foreign Keys. When you select an item, you are storing the Primary Key value of a related table in the Foreign Key Column of the page table.