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 sessions and cookies take one example simple way to understand

0 Answers  


Can I customise the trace output?

0 Answers  


any one can explain about projectarchitecture and project approach briefly

0 Answers  


How do we do authentications using atlas?

0 Answers  


readonly syntax ?

0 Answers  


What is a service class?

0 Answers  


what is the need of vss to developer?

1 Answers  


What is the mesi? : .NET Architecture

0 Answers  


Difference between throw exception and rethrowing ?

0 Answers  


I can't be bothered with cas. Can I turn it off?

0 Answers  


define cache memory? : Dot net architecture

0 Answers  


Define pipelining? : Dot net architecture

0 Answers  


Categories