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 / rajesh kumar patnaik
SELECT ProductName
FROM Products
WHERE (ProductName IN
(SELECT ProductName
FROM Products
GROUP BY ProductName
HAVING COUNT(*) > 1))
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
What are sql data types?
How do I run a sql trace?
What are the types of triggers in sql?
Is sql harder than python?
What are aggregate functions in sql?
Does group by remove duplicates?
How do I upgrade sql?
State few characteristics of pl/sql?
explain advantages of myisam over innodb? : Sql dba
What does sql stand for?
What is the difference between having clause and where clause?
What are the topics in pl sql?
What is oracle and pl sql?
Can procedure in package be overloaded?
Is clustered index a primary key?