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 / lakshmi narayana
select * from emp a ,
(select empno,count(*) from emp group by empno having count
(*) > 1) b
where a.empno = b.empno
| Is This Answer Correct ? | 27 Yes | 10 No |
Post New Answer View All Answers
How do rank () and dense_rank () differ?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
Is sql a programming?
Are subqueries better than joins?
What is sap sql?
How do I get sql certification?
what is the difference between clustered and non clustered index in sql? : Sql dba
How do you modify a table in sql?
How does an execution block start and end in pl sql?
What is sqlexception in java?
What is sql profiling in oracle?
What is nosql db?
What is multiple partition?
How do I sort a table in sql?
List different type of expressions with the example.