How to Remove Duplicate Values from SQL Table

Below SQL queries below will help to remove duplicate values from the SQL table.

DELETE FROM table 
WHERE ID IN (
    SELECT ID
    FROM table
    GROUP BY ID
    HAVING COUNT(ID) > 1
);
DELETE FROM [master].[dbo].[EMP] 
WHERE EMP_ID NOT IN (
    SELECT MAX(EMP_ID) AS MaxRecordID
    FROM [master].[dbo].[EMP]
    GROUP BY emp_name, EMP_SALARY
)