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 / satheesh
SELECT * FROM EDUCATION E1 WHERE ROWID>(SELECT MIN(ROWID)
FROM EDUCATION E2 WHERE E1.EMPID=E2.EMPID)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is scalar data type in pl sql?
What is the difference between delete and truncate commands?
What are the different operators available in sql?
how can you create an empty table from an existing table? : Sql dba
What is pl sql block in dbms?
What is the usage of nvl function?
Why functions are used in sql?
Define join and name different types of joins?
how to get @@error and @@rowcount at the same time? : Sql dba
Can variables be used in sql statements?
Why use truncate instead of delete?
How bulk collect improves performance?
What is cross join sql?
What is the difference between a subquery and a join?
How does pl sql work?