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
how to get a list of columns in an existing table? : Sql dba
What is an intersect?
Does asenumerable execute the query?
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
what is blob? : Sql dba
Will truncate release space?
What is cte?
What are data types in pl sql?
What is primary key in db?
Which one is better subquery or joins?
How do I restart sql?
What is the sql query to display the current date?
What are the different types of dbmss?
What is substitution variable?
How do I kill a query in postgresql?