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

select * from education a where rownum>(select max(rownum)
from education b where b.rno=b.rno)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does index help in query performance?

565


Is microsoft sql free?

604


Show the cursor attributes of pl/sql.

612


Why do we need pl sql?

550


Why indexing is needed?

519






What is a natural join sql?

513


Explain about various levels of constraint.

525


Define the select into statement.

576


What are the properties of a transaction?

564


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2009


What is count * in sql?

555


What is a crud api?

502


How can I get the number of records affected by a stored procedure?

579


does sql support programming? : Sql dba

611


How would you convert date into julian date format?

594