I have been working on this for a while now and I wanted to see if someone could assist me. I have 2 tables each with 5 fields. 4 of the fields are 2 character strings, then the final field is the full value.
[EX 1:
Table1......... .......Table2
Seg1: 10............. Seg1: 10
Seg2: 11............. Seg2: 11
Seg3: 15............. Seg3: 15
Seg4: 01............. Seg4: Null
Final: 10111501...Fina l: 101115]
[Ex 2:
Table1......... .......Table2
Seg1: 10............. Seg1: 10
Seg2: 11............. Seg2: 11
Seg3: 15............. Seg3: 15
Seg4: 01............. Seg4: 01
Final: 10111501...Fina l: 10111501]
I know how to match the finals where they are equal but I need to match where there is a partial match with the greatest number of Segments. So in the above I would need to exclude the exact match EX 2 and match 10111501 to 101115 like in EX 1, however I have not been able to get this to work.
Any assistance would be greatly appreciated.
[EX 1:
Table1......... .......Table2
Seg1: 10............. Seg1: 10
Seg2: 11............. Seg2: 11
Seg3: 15............. Seg3: 15
Seg4: 01............. Seg4: Null
Final: 10111501...Fina l: 101115]
[Ex 2:
Table1......... .......Table2
Seg1: 10............. Seg1: 10
Seg2: 11............. Seg2: 11
Seg3: 15............. Seg3: 15
Seg4: 01............. Seg4: 01
Final: 10111501...Fina l: 10111501]
I know how to match the finals where they are equal but I need to match where there is a partial match with the greatest number of Segments. So in the above I would need to exclude the exact match EX 2 and match 10111501 to 101115 like in EX 1, however I have not been able to get this to work.
Any assistance would be greatly appreciated.
Comment