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 does it mean to have quoted_identifier on? : Sql dba

882


What is difference between pl and sql?

704


What is blind sql injection?

747


What are sql data types?

740


What is the difference between functions, procedures, and packages in pl/sql?

696






Can we perform dml in function?

794


Explain autonomous transaction.

838


What is case function?

771


What is on delete restrict?

712


Define SQL and state the differences between SQL and other conventional programming Languages?

861


What is varchar example?

764


How can I change database name in sql?

693


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3709


How can we store rows in PL/SQL using array?

874


What are field types?

721