Leave a Reply

Your email address will not be published. Required fields are marked *

1 Comment

  • Great!

    I also saw this post. Howeve, if we modify it in the following way:

    DELETE T1
    FROM MyTable T1, MyTable T2
    WHERE T1.dupField = T2.dupField AND T1.dupField2=T2.dupField2
    AND T1.uniqueField > T2.uniqueField

    And if dupField2 is NULL, then it does not work. Any suggestions