Advice on joining on 'unexact' match
Posted: Wed Jan 30, 2013 8:36 am
Need some advice. I don't know if I should be using QualityStage (for which I have no experiece) or DataStage or just down and dirty SQL.
Problem:
I have invoice numbers in a column in a table from the AR System.
I have invoice numbers in a a column from the ledger system.
I need to be able to join on these two columns.
However, the invoice numbers in the ledger system are the same as the AR System EXCEPT for extraneous data appended to the invoice in the ledger system so it is not an exact match. Also, it is not consistent. For example, data from different countries might have different data appended, so it is not a straight-forward RULE.
I seemingly need to do a 'like' join somehow. or have many 'CASE' statements that define each RULE to clean up the extraneous data appended to the invoice number and then do the join.
I am not sure how to best attack this problem. Does anyone have any thoughts?
Problem:
I have invoice numbers in a column in a table from the AR System.
I have invoice numbers in a a column from the ledger system.
I need to be able to join on these two columns.
However, the invoice numbers in the ledger system are the same as the AR System EXCEPT for extraneous data appended to the invoice in the ledger system so it is not an exact match. Also, it is not consistent. For example, data from different countries might have different data appended, so it is not a straight-forward RULE.
I seemingly need to do a 'like' join somehow. or have many 'CASE' statements that define each RULE to clean up the extraneous data appended to the invoice number and then do the join.
I am not sure how to best attack this problem. Does anyone have any thoughts?