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
This will work:
With NewCTE AS ( Select *, Row_number() over(partition by ID order by ID)as RowNumber from table_name ) Delete from NewCTE where RowNumber > 1