removing duplicates from a table with no id column or pk

  • i have a table with no primary key or id column. each record is duplicated anywhere from 3 to 12 times.there are about 30 columns in the table. how do i get rid of the duplicates? could it be as simple as select distinct?

    the only thing im worried about when using distinct, is that, there might be 12 duplicates of the same row, but im afraid that even though some rows may have the same customerID and period, the other figures may be different( i.e just because some rows for a customer may be duplicates , some might not be)

     

  • Here's an article on this subject...

    http://sqlteam.com/item.asp?ItemID=3331

    Ryan Randall

    Solutions are easy. Understanding the problem, now, that's the hard part.

  • thank you. that was most helpful!!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply