Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

How to compare 2 columns from 2 table with Many to Many Relation Ship

Hello Experts,

Seeking your Tricks on to How to compare 2 columns from 2 different Tables which is having Many to Many relationship and the resultant table to show what are Matching and Not Matching in one Single Table.

 

Sample Data:

 

 

Output/Resultant Table:

Item NoLine NoOrder NoTable A
Request Date
Table B
Request Date
Request Date
Match vs Not Match
Table A
Qty
Table B
Qty
Qty
Match vs Not Match

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Relationship is created by Concatenated column of (OrderNo-ItemNo-LineNo) in both the tables.