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

In the above query we have to add distinct before *. Else
duplicate rows will be fetched twice.

Thanks,
Lakshmi

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sorting in sql?

690


What does over partition by mean in sql?

719


how can we know the count/number of elements of an array? : Sql dba

784


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

751


What is an example of translating a date into julian format?

792


What are different functions in sql?

704


How do you create a db file?

718


What is an index in sql with example?

725


What are the three pl sql block types?

734


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1097


Which operator is used in query for pattern matching?

847


What is difference between pls_integer and integer?

719


How do I partition a table in sql?

748


Why select is used in sql?

707


What is difference between my sql and sql?

732