Write a query to find duplicate rows in table?
Answer / Ramayan Prasad Mishra
To find duplicate rows in MySQL, you can use the following query: SELECT * FROM table WHERE id IN (SELECT min(id) FROM table GROUP BY column1 HAVING COUNT(*) > 1); Replace 'table' with your actual table name and 'column1' with the column that you want to compare for duplicates.
| Is This Answer Correct ? | 0 Yes | 0 No |
What's the latest version of mysql?
How to extract a unit value from a date and time?
Query to select passwords from a table having a column "Password" Whose length is b/w 8 &15 and having 'A' as the first character in the password irrespective of case.
what is the procedure to configure the application of mysql?
What is field in mysql?
What is the maximum number of records in mysql table?
In which format data is stored in mysql database?
how we connect the data base in any programme
How MySQL is different from SQL?
17 Answers HCL, IBM,
how to Return total number of rows.
What is the difference between mysql_fetch_assoc and mysql_fetch_array?
Can mysql store files?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)