Code: Select all
Input(text file):
ID VALUE CODE
01 1000 DED
01 1000 DED
01 1000 DEP
01 1000 DEP
01 1000 INN
01 1000 INN
02 2000 INN
02 2000 DEP
02 2000 INN
02 2000 DEP
03 3000 INN
03 3000 INN
04 4000 DED
04 4000 DED
Output(table):
ID VALUE CODE
01 1000 DEP
02 2000 DEP
03 3000 INN
04 4000 DED
There are 5000 records which have duplicates like this, can anybody let me know how to accomplish this logic.