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 / guest
SQL> DELETE FROM <TABLE_NAME>
WHERE (ROWID,SAL) NOT IN
(SELECT MIN(ROWID),SAL FROM <TABLE_NAME>
GROUP BY SAL);
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
what are date and time data types in mysql? : Sql dba
What operators deal with null?
What is an implicit commit?
Explain select statements in sql?
What is self-join and what is the requirement of self-join?
How do you sort in sql?
Is left join same as join?
What is dba in sql? : SQL DBA
What is pl sql commands?
How to connect a sql*plus session to an oracle server?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
What is query syntax?
What is offset and limit in sql?
Is trigger a stored procedure?
What does bitemporal mean?