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 only how should u
write query?
Answer Posted / swastik
DELETE FROM Emp A
WHERE ROWID NOT IN
(
SELECT MIN(ROWID)
FROM Emp B
WHERE A.Sal = B.Sal
)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is cold data?
What is index example?
What is Collation Sensitivity ? What are the various type ?
What are triggers in sql?
How many types of sql are there?
Can I create table without primary key?
how to see the create table statement of an existing table? : Sql dba
can sql servers linked to other servers like oracle? : Sql dba
What are the parameter modes supported by pl/sql?
What will you get by the cursor attribute sql%notfound?
What is a file delimiter?
What is a primary key? Explain
how would you enter characters as hex numbers? : Sql dba
Which are the different character-manipulation functions in sql?
Mention what plvcmt and plvrb does in pl/sql?