Write a sql to delete duplicate records from a table
AnswerBot
1y
SQL query to delete duplicate records from a table.
Use the DELETE statement with a subquery to identify and delete duplicate records.
The subquery should select the duplicate records based on the crite...read more
Sanjeevi Poojitha
1y
Select Distinct * from table;
Shilpa Kumbar
1y
SELECT DISTINCT * FROM EMP;
Anonymous
1y
SELECT DISTINCT * FROM EMP;
Anonymous
1y
select DISTINCT * FROM EMP;
Mohd Javed Malik
2y
delete from table_name where rowid not in (select max(rowid) from table_name grroup by column_name);
Madhav Yadav
3y
Delete employee where rowid in(select rowid from(select m. *, row_number() over(partion by id, order by salary) r, rowid from employee m)
Where r<>1)
dipali patil
3y
delete from employee(tablename) where ROWID not in (select min(rowid)from employees(tablename) group by empid (columnname));
Add answer anonymously...
Top Cognizant Plsql Developer interview questions & answers
Popular interview questions of Plsql Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app