How can I delete duplicate rows where no unique row id exists?
unique row id
My table is
col1 col2 col3 col4 col5 col6 col7 john 1
with myCTE as ( select productName,ROW_NUMBER() over(PARTITION BY productName order by slno) as Duplicate from productDetails ) Delete from myCTE where Duplicate>1