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 / suneelkumar
delete from emp x where rowid>(select rowid from emp y where
x.sal=y.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use views in stored procedure?
Explain correlated query work?
Is drop table faster than truncate?
how can we find the number of rows in a table using mysql? : Sql dba
What is error ora-01000: maximum open cursors exceeded
Is mariadb nosql?
What is the usage of sql functions?
Define select, insert, create, delete, update, drop keywords
What does sql stand for?
Can pl sql procedure have a return statement?
What is group function in sql?
What are inbuilt functions in sql?
How do I find duplicates in sql?
What are the disadvantages of not performing database normalization?
How do you run a query?