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
How are sql commands classified?
What is the use of triggers?
What is an emotional trigger?
what is the use of friend function? : Sql dba
What is percent sign in sql?
Explain character-manipulation functions?
Explain the types of joins in sql?
What are all the ddl commands?
What is the use of sqlerrd 3?
how can we optimize or increase the speed of a mysql select query? : Sql dba
how to start mysql server? : Sql dba
What is thread join () in threading?
What is partition in sql query?
What is the difference between syntax error and runtime error?
Where is pl sql used?