how to remove records from table?
no name
1 a
2 b
1 a
2 b
3 c

Answer Posted / pratap

Delete from table name where row_id not in (select min(no)
from table_name group by no)

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define overloaded procedure?

616


What is the usage of the distinct keyword?

674


What is the current version of sql?

526


What is bulk compiling in pl/sql.?

600


how many sql ddl commands are supported by 'mysql'? : Sql dba

510






When to use inner join and left join?

514


Does sql backup shrink transaction log?

543


What is the maximum rows in csv?

479


What is a call statement? Explain with an example.

537


What is difference between cursor and trigger?

545


what is offset-fetch filter in tsql? : Transact sql

527


What is linq to sql?

542


What are the benefits of triggers?

589


What is triggering circuit?

588


What is t sql used for?

544