Forum Discussion

anshpalash's avatar
anshpalash
Helper II
4 years ago
Solved

Merging Rows with Common ID from different Tables

Hi all,

I have three tables of the form:

IDLocation
11NY
12DL
13IN
14TX
17NY

 

IDWeight
111
122

 

IDLot
172123

 

I am looking to achieve this:

IDLocationID MatchWeightLot
11NY111null
12DL122null
13INnullnullnull
14TXnullnullnull
17NY17null2123

 

I have created a relationship set up between the ID columns of the three tables. I want to add those rows from the second and third tables to the first table that have a matching UID. 

 

I tried using the related function for the second table. But since I can only have one active relationship, I am not able to do the same for the third table.

 

Can anyone please give me any direction on how I can add rows from different tables to the first one that have a matching ID? Thanks!

3 Replies