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 / manju
Select sal from emp group by sal having count(*)>=1
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is data control language?
what is the difference between a local and a global temporary table? : Sql dba
Why procedure is used in sql?
What is a sql driver?
Can we write dml inside a function in sql server?
Is stored procedure faster than query?
How to pronounce postgresql?
how to rename an existing table in mysql? : Sql dba
What are the different dcl commands in sql?
Which one is faster ienumerable or iqueryable?
What are %type and %rowtype for?
Define concurrency control. : Transact sql
Can we group by two columns in sql?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What do you understand by pl/sql cursors?