1st find out the duplicate rows by using CTE then use this temporary table as condition in delete clause You can checkout this link for clear understanding: https://youtu.be/b09dWRVk7BY
WITH CTE AS
(SELECT EmployeeName,
ROW_NUMBER() OVER(PARTITION BY EmployeeName ORDER BY EmployeeName) AS R
FROM employee_table
delete from employee_table
where EmployeeName IN (
select EmployeeName from CTE
where R>1)