Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relationship and ERD Query

Featured Replies

I am having trouble getting my head around the appropriate relationship setup between tables in my database.

Tables in question include Clients, Contacts, Communication and Projects.

Clients (parent) have multple Contacts (child)

Communication (phone converstaion, email, or fax) occurs with one or more of the contacts from one client, in relation to one or more projects.

I had intially set up a client layout showing related communication via a portal. I wanted to nominate which contact person the communication is occuring with but couldnt seem to get the related name values to appear in a value list. After doing some research it has occured to me that perhaps I have the relationship set up round the wrong way because one 'communication or conversation' can occur with more than one of the clients contacts at the same time (ie an email).

But I am having trouble working out if there should be an additional LI table in between contacts, communication and projects.

Please see a draft/tester of the ERD. Any comments/suggestions gratefully received.

TesterERD.pdf

Communication (phone converstaion, email, or fax) occurs with one or more of the contacts from one client, in relation to one or more projects.

If you really want to restrict a communication record to one client, you need to store the _fkClientID in the Communication (or CommunicationLi) table.

If you want to associate a Communication with more than one Contact, you have two options: another table (like CommunicationsLi), or a multi-key field

To use another table: add it between Communication and Contacts

To use a multi-key field: change the _fkContactID field to text, then store ContactID's in it as a value list (return deliminated ie: "123¶456¶789").

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.