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 dml with example?
Why do we need unique key in a table?
which tcp/ip port does sql server run on? : Sql dba
What is pl/sql language case sensitive?
How do I pipe the output of one isql to another?
What is crud stand for?
How do I install microsoft sql?
what are the 'mysql' command line options? : Sql dba
What is a call statement? Explain with an example.
Why functions are used in sql?
What is trigger in pl sql?
Is a table valued function object?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
how many columns can be used for creating index? : Sql dba
How do I copy a table in sql?