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 / sandeep sudunagunta
Select sal form from my_table group by sal having count(*)>1
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is embedded sql what are its advantages?
Why are cursors used?
What is cold data?
How can I tell if sql is running?
What are the different datatypes available in PL/SQL?
how to get a list of columns in an existing table? : Sql dba
what is the difference between primary key and unique key? : Sql dba
Is there a 64 bit version of ssms?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
What is the difference between null value, zero, and blank space?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
Explian rowid, rownum? What are the psoducolumns we have?
What are the possible values for the boolean data field?
How can we find duplicate records in a table?
what are all the different types of indexes? : Sql dba