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 / balaji
For Sample:
----------
select count(pmid) as Occurances,pmid from tablename group
by pmid having count(pmid)>1
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
Can we perform dml in function?
How to order siblings in oracle hierarchy queries?
What are the three pl sql block types?
How does left join work in sql?
What is the location of pre_defined_functions.
What is sequence in sql?
What is meant by cursor in sql?
What is a function in oracle pl sql?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
what are aggregate and scalar functions? : Sql dba
What are character functions?
What is difference between sql and excel?
Can we use commit inside a trigger?
What is nvarchar max in sql?
what is offset-fetch filter in tsql? : Transact sql