Delete duplicate records in the emp table.

Answer Posted / srinivas ganamur

Delete from table t1
where t1.rowid>(select from table t2
from table t2
where t1.col_name=t2.col_name);

Srinivas Ganamur
Bangalore

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scalar data type in pl sql?

561


What is delimiter in pl sql?

584


The in operator may be used if you know the exact value you want to return for at least one of the columns.

561


What is a native sql query?

498


How do you declare a user-defined exception?

530






What are the possible values for the boolean data field?

527


What are the two different parts of the pl/sql packages?

568


How do you use a while loop in pl sql?

541


what is the difference between cluster and non cluster index? : Sql dba

559


What is normalization sql?

513


What is an inner join sql?

549


how to drop an existing view in mysql? : Sql dba

573


Explain spool.

691


What is a temp table?

571


What is difference between sql and mysql?

537