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
What is rollback?
Are null values same as that of zero or a blank space?
What are the advantages of stored procedure?
Do stored procedures prevent sql injection?
What is query execution plan in sql?
What is full join?
what is index? : Sql dba
what is a cursor? : Sql dba
What is the difference between the implicit and explicit cursors?
what is the difference between truncate and delete statement? : Transact sql
What is the difference between in and between in sql?
Why truncate is faster than delete?
What is the difference between stored procedure and view?
Does oracle use sql?
Explain the purpose of %type and %rowtype data types?