Sep 16, 2004 #1 rab54 Programmer Jan 28, 2004 112 GB Hi gurus - What is the best way to put a unique index on a column that already has duplicate data in ? Should I remove the dupes first ? then add the index or is there a better way .... Maybe dump the table ,remove dupes with DISTINCT and re-import ? cheers Rab
Hi gurus - What is the best way to put a unique index on a column that already has duplicate data in ? Should I remove the dupes first ? then add the index or is there a better way .... Maybe dump the table ,remove dupes with DISTINCT and re-import ? cheers Rab
Sep 16, 2004 #2 sleipnir214 Programmer May 6, 2002 15,350 US You must remove the duplicates first -- that is, after all, what a unique index is there to prevent. How you remove the duplicates will depend on the structure of your table. Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
You must remove the duplicates first -- that is, after all, what a unique index is there to prevent. How you remove the duplicates will depend on the structure of your table. Want the best answers? Ask the best questions! TANSTAAFL!!