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 sql integrity?
What are keys in sql?
What is pl sql script?
How do I run sql?
Can we edit a view in sql?
Who developed sql?
How can get second highest salary in sql?
What is a temporal data type?
What is pragma in pl sql?
What is pls integer?
What is rank () in sql?
How do you optimize a stored procedure in sql?
Why do we need cursors in pl sql?
How do I find duplicates in two columns?
What does the argument [or replace] do?