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
How do I view a procedure in sql?
what is the difference between primary key and unique key? : Sql dba
What is meant by user defined function?
What is the difference between subquery and correlated query?
What is sql and how does it work?
What is sql partition?
how to convert character strings to dates? : Sql dba
How do you write an inner join query?
Can we commit in trigger?
what is sub-query? : Transact sql
What are the qualities of 2nf?
Does sqlite need a server?
What is trigger in sql? Explain
What are pl/sql packages?
What is left join example?