I'm trying to removed duplicates that were created with with and "hour" (hh) difference. Example, 1/1/2016 2:10:55 AM ... vs ... 1/1/2016 4:10:55 where all other values are the same (meaning other columns).
Below is the SQL query I used to find my 'unique' duplicates. I've reviewed them and they are ready to be deleted. However, I'm struggling on how to delete these records because of the unique Date_Time. I've looked at numerous examples but they all assume 'exact duplicates' occur but they don't because of this anomaly. Any recommendations?
SELECT Script_Log.Script_Name, Script_Log.Date_Time, Script_Log.Person, Script_Log.Computer, Script_Log.Area, Count()
GROUP BY Script_Log.[Script_Name], Script_Log.[Person], Script_Log.[Computer], Script_Log.[Area], Script_Log.[Date_Time]
HAVING (((Count())>1) And ((Left(Right([Date_Time],8),5))=Left(Right(Script_Log.Date_Time,8),5)));