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 private constructor? And it's use?

0 Answers  


What exactly is being serialized when you perform serialization? scope in C# ?

1 Answers  


while developing a asp.net 2.0 ajax application how to maitain and check the ACID property for each transaction

2 Answers   Aviva,


Define a virtual memory? : Dot net architecture

0 Answers  


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

0 Answers  


Does application frame need host?

0 Answers  


What is .net mobile lists. Explain with an example? : Microsoft dot net mobile

0 Answers  


What are the different pipelining hazards and how are they eliminated? : Dot net architecture

0 Answers  


what is inheritancy where u required ?

0 Answers  


What is the difference between an application and a program?

0 Answers  


what are clr,cls,cts?what is .net framework?

6 Answers   Six Sigma,


what is the need of vss to developer?

1 Answers  


Categories