Тhe customer id
get updated regularly. There is a table
that records this change.
Customer id, Customer’s Previous id, Customer’s Successor id
100,95,102
101,96,105
102,100,104
103,99,106
107,88,111
We need from this data for each customer id
, that latest changed customer id
. A sample of that from
above data would be:
Customer id, Latest Customer id
100,104
101,105
102,104
103,106
107,111