Forum Discussion

learner03's avatar
learner03
Post Partisan
4 years ago
Solved

Merging tables query

I have below 2 tables-SO and SO_lines

I want the output table as such that the new table should only contain those SO that are in SO table and the quantity column should be the the sum of only quantities of those items that are in SO table. I do not want the items that do not belong to SO table.

   
Table SO   
   
JobID  
A  
B  
C  
D  
   
Table SO_lines 
   
JobIDItemQuantity
A12340
A456100
A78945
A32123
B12354
B45654
B76532
C12312
C32154
C45623
D98787
D123122
E12343
F45623

OUtput-items and quantites of only those who are in SO table-

Output Table
  
itemQuantity
123228
456177
78945
32177
76532
98787

 

  • Assuming your relatioship is like this

     

    Create a table as

     

     

    Add filter 

     

    Your output will be 

     

     

4 Replies