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

What is keys and its types?

546


what is the difference between join and union? : Sql dba

548


What is the unique index?

525


Explain aggregate functions are available there in sql?

534


What is the difference between alter trigger and drop trigger statements?

602






What is mutating trigger?

585


Can we enter data in a table in design view?

520


how to create a table index in mysql? : Sql dba

597


Explain the difference between 'between' & 'and' operators in sql

531


What is record type in pl sql?

550


What is the difference between delete and truncate commands?

515


column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.

6088


Is delete faster than truncate?

550


Can I create table without primary key?

531


How many clustered indexes can be created on a table?

595