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 / hiya
select n from (select row_number()over (partition by n order
by n) r,n from test group by n having count(*)>1)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between distinct and unique in sql?
Why is sql important?
What does varchar include?
How do I get sql certification?
Is left join faster than join?
Can we commit inside a trigger?
How do you delete duplicates in sql query using rowid?
how to load data files into tables with 'mysqlimport'? : Sql dba
Does view store data in sql?
what are the advantages a stored procedure? : Sql dba
how many ways to get the current time? : Sql dba
What is pl sql in dbms?
When is a declare statement required?
What is a clob in sql?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba