How to delete same emp id in sql query for exmaple in emp
table emp id, empname, emp address. for example emp id =5,
repeated in two times in rows same id how to delete same
empid please any one of the write query send in my id

Answer Posted / his highness yadav

ur question is not much clear

is it to delete duplicate rows or

to delete all the rows which is repeating , and the original

fr the first the query above will work fine

second option try this

delete from emp a, emp b where a.empno=b.empno

i think this will go ,, this will delete the all records which
is duplicating


cheers

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to pronounce postgresql?

653


What is rank function in sql?

632


how many triggers are allowed in mysql table? : Sql dba

657


What steps server process has to take to execute an update statement?

605


How can a pl sql block be executed?

612






Why having clause is used in sql?

637


How insert into statements in sql?

688


Explain what is an index?

679


What is sql character function?

616


What is difference between function and trigger?

629


Explain the structure of pl/sql in brief.

696


How many row comparison operators are used while working with a subquery?

639


What are the two types of exceptions in pl/sql?

637


What are the qualities of 2nf?

644


What is a database? Explain

685