;with cte as(
select State City, SubDiv, Pincode, Locality, Lat, Long,
row_number() over (partition by City, SubDiv, Pincode, Locality, Lat,Long order by City) rn
from yourtable
)
delete cte where rn > 1
;with cte as(
select State City, SubDiv, Pincode, Locality, Lat, Long,
row_number() over (partition by City, SubDiv, Pincode, Locality, Lat,Long order by City) rn
from yourtable
)
delete cte where rn > 1
Kasus yang Tepat/Judul sebuah Kolom dengan tabel Pengecualian di SQL Server
Haruskah Anda memilih tipe data UANG atau DECIMAL(x,y) di SQL Server?
cara melewati baris yang buruk di sumber file datar ssis
SQL Server 2016:Buat Prosedur Tersimpan
SQL - Konversi tipe data varchar ke tipe data datetime menghasilkan nilai di luar rentang