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.

Combine related records into one field

Featured Replies

Our current relational database has three separate 'notes' tables. Each note is it's own separate record and is related to a master record number (MRN) in the main table (employee information).

We now want to combine all notes for each user (out of all three notes tables) into a single field (one single notes field). Notes contain date (timestamp), who added it, the note itself.

So the new text note field will combine all three notes found in all three tables into one like so (for each employee):

Notes for John Doe

11/1/2009: wahtever

11/2/2009: from second notes table

11/3/2009: from third notes table

Thanks in advance!

Use calculation:

Notes=notes from relation table1 & notes from relation table2 & notes from relation table3 with Text result.

If in each relational table you have several records with notes like "the same ..." before mentioned calculation make global field and fill it with note from each record via looping though them.

Look in sample file.

Notes.fp7.zip

Peter's method is a worthy one ... but I must ask ... why aren't the notes combined into one table to begin with (with only a field holding the EmployeeID or category or whatever makes them different)? If they were in one table, there would be no need to combine them. And the (potential) issue I spot is you might want the notes in order of date. Not good and not easily possible with three tables.

If the notes was ONE table, a simple sort and NO globals, calculations or additional relationships would be required. Just a consideration ... :smile2:

UPDATE: Any time you have multiple tables holding the SAME type of information, it usually indicates that they should be combined into ONE table with a Category or Type field (or EmployeeID field) to indicate why they are different.

Edited by Guest
Added update

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.