I have a table like this:
Location E-Mail Name Language Creation Time ----------------------------------------------------------------------- D [email protected] Max de 19:06:00 <-- A D [email protected] Peter en 19:10:00 D [email protected] Lisa en 17:39:00 E [email protected] Tom fr 05:00:00 <-- B E [email protected] Carl en 09:01:00 D [email protected] Max en 17:45:00 <-- A D [email protected] Mike de 17:45:00 <-- A E [email protected] Tom de 06:00:00 <-- B I want to identify every record, where Location AND E-Mail are the same, delete the "duplicates" and keep only the newest record. If the creation time is the same (A), then it doesn't matter, which record is deleted.
The result-table should be:
Location E-Mail Name Language Creation Time ----------------------------------------------------------------------- D [email protected] Peter en 19:10:00 D [email protected] Lisa en 17:39:00 E [email protected] Tom fr 05:00:00 <-- B E [email protected] Carl en 09:01:00 D [email protected] Mike de 17:45:00 <-- A Because the table is very long, the solution should be speedy. :-)
Thanks for every hint!
Cheers, Holger