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 different functions in sql?
What is fmtonly in sql?
Is it possible to pass parameters to triggers?
What is dynamic query?
Which constraints we can use while creating database in sql?
what is user defined functions? : Sql dba
How many types of tables are there?
What is java sql driver?
How do you use collections in procedure to return the resultset?
How do you use join?
Why is sql*loader direct path so fast?
Can we enter data in a table in design view?
Is sql injection illegal?
What is int identity in sql?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?