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 a database and a relational database?
Can we join same table in sql?
What is left join example?
Is oracle sql free?
Can we call a function containing dml statements in a select query?
define data blocks ? : Sql dba
What is the difference between left join and right join?
what are the limitations of identity column? : Transact sql
Is left join inner or outer?
Why does sql need a server?
how is exception handling handled in mysql? : Sql dba
Write the alter statement to enable all the triggers on the t.students table.
How do I run sql?
What does over partition by mean in sql?
What is pl sql in oracle?