write a query to delete similar records in same table

Answer Posted / kirankumar.vangeti

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are indexes and views important to an organization?

519


What is a trigger word?

505


Is sql a backend?

539


What do you mean by “trigger” in sql?

607


Is sql better than excel?

511






What is the difference between in and between in sql?

567


Does a user_objects view have an entry for a trigger?

566


What is the difference between sql, mysql and sql server?

523


Explain the significance of the & and && operators in pl sql.

562


What is sql character function?

535


Why truncate is used in sql?

523


What is the difference between sum and count in sql?

513


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

635


What is the difference between an inner join and an outer join?

508


What packages are available to pl/sql developers?

586