I have a table that is supposed to keep a trace of visitors to a given profile (user id to user id pair). It turns out my SQL query was a bit off and is producing multiple p
Select all unique rows Copy them to a new temp table Truncate original table Copy temp table data to original table That's what I'd do. I'm not sure if there's 1 query that would do all this for you.