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 / seshu
SELECT RNO,NAME,COUNT(*) REP_COL FROM Education GROUP BY
RNO,NAME having Count(*)>1;
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Do ddl statements need commit?
What is primary key secondary key alternate key candidate key?
how can you see all indexes defined for a table? : Sql dba
Define SQL and state the differences between SQL and other conventional programming Languages?
Do prepared statements prevent sql injection?
what is sp_pkeys? : Transact sql
how to rename an existing table in mysql? : Sql dba
What is the plv (pl/vision) package offers?
How do you delete a table?
Can you rollback after commit?
Why are aggregate functions called so?
How bulk collect improves performance?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
How does a self join work?
What are aggregate and scalar functions?