How to retrieve Duplicate Rows only in a Table?
Suppose if a Table Name is "Education". It consists of
multiple columns. Then if we insert rows into this table
with duplicate records then how can we retrieve only
duplicate records from that table?
Answer Posted / naresh
select * from emp where sal in(select sal from emp group by
sal having count(sal)>1);
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are analytic functions in sql?
What is the use of sqldataadapter?
What is pl sql collection?
what is the difference between truncate and drop statements? : Sql dba
What does 0 mean in sql?
What is lookup table in sql?
Can we use view in stored procedure?
what is denormalization. : Sql dba
Explain unique key in sql.
What are crud methods?
What is anonymous block in sql?
what is a table in a database ? : Sql dba
Can you have more than one trigger on a table?
What is cursor status?
What is substitution variable in pl sql?