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 / aravind

select SPAN_UUID, SPAN_UNIT_UUID, count(*) from
SPAN_SPAN_UNIT group by SPAN_UUID, SPAN_UNIT_UUID having
count(*) > 1;

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to convert dates to character strings? : Sql dba

539


How do I count duplicates in sql?

550


How to run sql statements through the web interface?

514


What is data abstraction in sql?

513


Is sql considered coding?

569






What does select top 1 do in sql?

544


Is left join and outer join same?

550


How do I run sql profiler?

588


What is a sql select statement?

571


Explain how can you save or place your msg in a table?

597


What is the purpose of the sql select top clause?

557


What is the difference between in and between in sql?

576


What is the use of %rowtype?

537


give the syntax of grant and revoke commands? : Sql dba

619


Define commit, rollback and savepoint?

578