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 / lakshmi
In the above query we have to add distinct before *. Else
duplicate rows will be fetched twice.
Thanks,
Lakshmi
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Define SQL and state the differences between SQL and other conventional programming Languages?
Does pdo prevent sql injection?
how to select first 5 records from a table? : Sql dba
explain the difference between myisam static and myisam dynamic. : Sql dba
How do I view tables in mysql?
what is the difference between blob and text? : Sql dba
what is the difference between a local and a global temporary table? : Sql dba
What is sql data?
What is the basic structure of an sql?
What is forward declaration in pl sql?
what are the non-standard sql commands supported by 'mysql'? : Sql dba
Is trigger a stored procedure?
What is a sql trace file?
how to return query output in html format? : Sql dba
What is ttitle and btitle?