Write the query to remove the duplicates from a table without using a temporary table?

Write query