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


Please Help Members By Posting Answers For Below Questions

What are the types of subqueries?

570


Define SQL and state the differences between SQL and other conventional programming Languages?

677


Explain what is dbms?

575


What is the difference between between and in condition operators?

530


What is function and procedure?

561






Is oracle sql free?

534


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

547


Can we use pl sql in mysql?

511


What is a record in a database?

559


What do you understand by pl/sql packages?

566


What is assignment operator in pl sql?

559


Does normalization improve performance?

552


What is difference between primary and secondary key?

515


What is a trigger word?

511


How do I find duplicates in a single column in sql?

529