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 are types of indexes in sql?
Is primary key an index?
what is the difference difference between procedure and packages
What is view? Can we update view
What is input buffer in sql*plus?
how to rename an existing column in a table? : Sql dba
What is a recursive stored procedure?
What do you mean by “trigger” in sql?
What is the cause of mutating table error and how can we solve it?
what is bcp? When does it used? : Sql dba
What are dml commands?
What is rollback?
Can we rollback truncate?
What is ttitle and btitle?
Why do we need view in sql?