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
what is subquery? : Sql dba
Are views faster than queries?
how to create a table index in mysql? : Sql dba
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
how can we destroy the cookie? : Sql dba
Is sql a backend language?
What is normalization? How many normalization forms are there?
What operators deal with null?
What are the features of pl sql?
How many tables can a sql database have?
How many types of literals are available in pl sql?
Is sql a programming?
Explain locks? : Transact sql
What is native sql query?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?