InterviewSolution
| 1. |
Given A Table Which Contains Some Rows With Duplicate Keys, How Would You Remove The Duplicates? |
|
Answer» create temporary table with same table structure and then create unique index on this temporary table with option ignore_dup_row. now insert DATA into temp table from the table in which duplicate records EXISTS. while inserting RECORD into temp table, duplicate rows will get ingored. Finally temp table will have unique records
create temporary table with same table structure and then create unique index on this temporary table with option ignore_dup_row. now insert data into temp table from the table in which duplicate records exists. while inserting record into temp table, duplicate rows will get ingored. Finally temp table will have unique records
|
|