Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Find and replace overlap in Tables

Hi all,

 

I want to create a combined table. I have table A and table B. The endresult should be that whenever there is a corresponing row present in situation B it should overwrite or add to situation A resulting in table C. Any ideas how to achieve this result?

 

 

 

 

Thanks!

 

  • Hi Anonymous 

    First you merge TableA with TableB on JoinKind.LeftAnti: This returns all rows that are present in TableA, but not in Table B (green part). 

    Then append that to TableB.

     

2 Replies

  • ImkeF's avatar
    ImkeF
    Community Champion

    Hi Anonymous 

    First you merge TableA with TableB on JoinKind.LeftAnti: This returns all rows that are present in TableA, but not in Table B (green part). 

    Then append that to TableB.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Well this looks brilliant. Thanks!