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

Let's say I have an existing application written using Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to .NET ?

1 Answers  


what is the shortcut key for toolbox and add existing item?

1 Answers   Six Sigma,


What is a service class?

0 Answers  


Please tell me the .net 2.5 frame work with example

2 Answers  


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

0 Answers  


can aspx page have multi language declarations ?

1 Answers  


What are the types of application software?

0 Answers  


what is Difference beetween Array and Hash Table.?

8 Answers   Patni,


How to upload in video,mp4,in .net 4.5 ..?

0 Answers   HCL,


Explain pipelining? : .NET Architecture

0 Answers  


Explain dotnet framework ?

0 Answers  


Difference between throw exception and rethrowing ?

0 Answers  


Categories