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 / a.balakrishna
select * from education where rowid in (select min(rowid)
from ex group by sno having count(*)>1);
100% it is true
Best of luck
9177509010
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain what is sql*plus?
What is the max nvarchar size?
How we can update the view?
What is sql analyzer?
how tsql statements can be written and submitted to the database engine? : Transact sql
What are the different types of a subquery?
What is a table partition?
Can a table contain multiple primary key’s?
What is a common use of group by in sql?
how to delete an existing column in a table? : Sql dba
Is primary key clustered or nonclustered?
Is sql workbench free?
Can 2 queries be executed simultaneously in a distributed database system?
what is the functionality of the function htmlentities? : Sql dba
what is oltp (online transaction processing)? : Sql dba