I have scanned through previous posts and can't find the answer I am
looking for.
I have a query that finds the duplicates of a table. The problem is
these aren't "true" duplicates where every field is the same. I would
like to compare two fields to determine if the record should be
deleted or not.
Table fields, ID, score1, score2, source, date
In my query, ID, score1 and score2 are the "duplicates". The source
can be one of 4 values (D, G, S, O)...I always want to keep the O
record, however, if there is no O record, I want to keep the D or G
over the S
Second, the date...I would like to compare the dates...If they are 30
days from each other, delete the duplicate...If they are more than 30
days, keep both records.
Can anyone assist me with the proper query?
Thanks