How to delete the duplicate records from table(having bulk
records)?

Answers were Sorted based on User's Feedback



How to delete the duplicate records from table(having bulk records)?..

Answer / rajani

delete from emp where rowid not in ( select max(rowid) from emp group by empno )

Is This Answer Correct ?    6 Yes 1 No

How to delete the duplicate records from table(having bulk records)?..

Answer / asha

DELETE FROM school WHERE badgeid NOT IN(SELECT MAX
(badgeid) FROM school GROUP BY id);

Is This Answer Correct ?    5 Yes 4 No

How to delete the duplicate records from table(having bulk records)?..

Answer / venkat

delete from employee
where
empid in (select e.empid from employee e, employee e1
where e1.empid=e.empid
group by e.empid
having count(e.empid)>1)

Is This Answer Correct ?    2 Yes 2 No

How to delete the duplicate records from table(having bulk records)?..

Answer / mml

delete from students where badgeid not in (select max(id)
from students group by badgeid);

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Dot Net AllOther Interview Questions

What is Ienumerable

1 Answers  


How can I write my own .NET host?

0 Answers   HCL,


Explain difference between machine config vs. Web config : Dot net architecture

0 Answers  


What is ILDASM ?

0 Answers   B-Ways TecnoSoft,


how u maintain data while navigating one page to another?

2 Answers  






how to display a message box in the Application?

2 Answers   Six Sigma,


Explain write back and write through caches? : Dot net architecture

0 Answers  


6. Wcf- what is SOA

0 Answers   PCS,


What is Opf3

0 Answers   Infosys,


What's the difference between an application and a program?

0 Answers  


what are the events for a form?

0 Answers   Six Sigma,


What is cache coherency? : Dot net architecture

0 Answers  


Categories