Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: Deleting Duplicate Records

    thanks

  • RE: Deleting Duplicate Records

    RBAR...didn't know that...!

    I did explain the plan for both and believe it or not the

    delete where NOT IN is less cost

    Is cost the indicator to look at for the execution...

  • RE: Deleting Duplicate Records

    What is RBAR?

    I agree performance may be better....but probably in most cases

    it wouldn't matter on tables with less than 20,000 records

  • RE: Deleting Duplicate Records

    I think the author meant to say that the ID column is unique

    his query is:

    --Find duplicate records

    --The result of this query is all the duplicate records whose Id is greater.

    select...

  • RE: Deleting Duplicate Records

    delete * from employee where id NOT IN (select min(id) from employee group by employeeno,employeeid)

    This will delete all duplicated records and leave one unduplicated record

    RickO

Viewing 5 posts - 1 through 5 (of 5 total)