one of the column in my table contains the data like
SAL
----
1000
1000
2000
3000
3000
So my requirement is i want output like
SAL
---
1000
2000
3000
it mean i want to delete duplicate rows in the table
permanently and i want output in the above formatow should u
write query?
Answer Posted / bibhudatta panda
DELETE FROM TABLENAME
WHERE ROWID NOT IN(
SELECT MAX(ROWID)
FROM TABLENAME
GROUP BY Sal
)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
how to use 'mysql' to run sql statements? : Sql dba
Explain the select statement in sql?
Does sql profiler affect performance?
what is the difference between a local and a global temporary table? : Sql dba
Does sql*plus have a pl/sql engine?
what is sub-query? : Transact sql
What is package in pl sql with an examples?
What are the indexing methods?
What is pl sql collection?
How can I speed up sql query?
What is a primary key example?
Why do we use joins?
What is a call statement? Explain with an example.
What is graph sql?