ozdemirozgur
Registered User.
- Local time
- Today, 21:04
- Joined
- Apr 29, 2011
- Messages
- 47
Hi,
I have a table of employees. It has 5 fields which are name, fname, dob, dateofplace, numberofdays (holidays taken since beginning of the year.) Table has more than 50,000 records and most of them are dublicates.
Dublicates are all the fields except the numberofdays. I would like to remove the dublicates when Name, Fname, DOB, DateOfPlace, are the same but with the maximum value of NumberOfHolidays. Please can someone tell me what is the easiest way of getting this done with minimal code.
example,
John, Green, 02/05/1977, London, 23 - Delete
John, Green, 02/05/1977, London, 9 - Delete
John, Green, 02/05/1977, London, 27 - Keep
John, Green, 02/05/1977, London, 12 - Delete
James Lour, 01/01/1977, Paris, 25 - Keep
James Lour, 01/01/1977, Paris, 12 - Delete
James Lour, 01/01/1977, Paris, 19 - Delete
thanks, Ozgur
I have a table of employees. It has 5 fields which are name, fname, dob, dateofplace, numberofdays (holidays taken since beginning of the year.) Table has more than 50,000 records and most of them are dublicates.
Dublicates are all the fields except the numberofdays. I would like to remove the dublicates when Name, Fname, DOB, DateOfPlace, are the same but with the maximum value of NumberOfHolidays. Please can someone tell me what is the easiest way of getting this done with minimal code.
example,
John, Green, 02/05/1977, London, 23 - Delete
John, Green, 02/05/1977, London, 9 - Delete
John, Green, 02/05/1977, London, 27 - Keep
John, Green, 02/05/1977, London, 12 - Delete
James Lour, 01/01/1977, Paris, 25 - Keep
James Lour, 01/01/1977, Paris, 12 - Delete
James Lour, 01/01/1977, Paris, 19 - Delete
thanks, Ozgur