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

How do I count records in sql?

514


Does google use sql?

508


What are the different operators available in sql?

570


explain the options of myisamchk to improve the performance of a table. : Sql dba

545


i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

3196






What are the commands used in sql?

523


What is the maximum size of sqlite database?

546


How to add, remove, modify users using sql?

556


What are different sql data types?

513


What is dialect in sql?

523


Is join an inner join?

531


Can we enter data in a table in design view?

516


Can you select everything, but 1 or 2 fields, without writer's cramp?

495


Show how functions and procedures are called in a pl/sql block.

586


what are the different functions in sorting an array? : Sql dba

579