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 / dinesh kumar
delete from table_name alias1
where rownum < ( select max(rownum) from table_name alias2
where alias1.col1 = alias.col2 );
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is nosql db?
What is indexes?
explain advantages of myisam over innodb? : Sql dba
What is a pragma statement?
What is the use of double ampersand (&&) in sql queries? Give an example
Where is all the data on the internet stored?
Is sqlexception checked or unchecked?
How many sql databases can you have on one server?
What is cursor explain with example?
explain the difference between bool, tinyint and bit. : Sql dba
What is pl sql quora?
Are pl sql variables case sensitive?
What is the best sql course?
What is cartesian join in sql?
what is union, minus and interact commands? : Sql dba