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 the unique index?
What is server name sql?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
What is difference between joins and union?
what is the functionality of the function htmlentities? : Sql dba
What are the different types of sql commands?
Is sql sequential or random?
what is the difference between cluster and non cluster index? : Sql dba
What is the least restrictive isolation level? : Transact sql
What is lexical units in pl sql?
What is the usage of nvl function?
What is pl sql in dbms?
What does the base_object_type column shows in the user.triggers data dictionary view?
Is left join inner or outer?
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba