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 / amit
SQL>DELETE FROM <TABLE NAME>
WHERE ROWID NOT IN (SELECT MIN(ROWID) FROM <TABLE NAME>
GROUP BY SAL);
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is the difference between microsoft access and sql server?
What is bind variable in pl sql?
What is rtm stands for?
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
What is pls_integer in pl sql?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
What is sap sql anywhere?
What does (*) mean in sql?
What is sql query limit?
How is data stored in sql?
What is sap sql?
define sql insert statement ? : Sql dba
what are the advantages and disadvantages of views in a database? : Sql dba
What is the maximum database size for sql express?
What are the different types of constraints?