Birlasoft interview question

How do you delete duplicate rows from a table using nested queries and without nested queries?