Forum Replies Created

Viewing 7 posts - 16 through 22 (of 22 total)

  • RE: Removing Duplicate Records

    And ofcourse you can create a CHECKSUM computed column which is calculated from all other fields. So you can determine all the duplicate records easily, they are all give the...

  • RE: Removing Duplicate Records

    I'm using that method (creating a unique index) for already existing tables. I mean without changing the original table.

    If you able to change / redesign your table you can add...

  • RE: Removing Duplicate Records

    ted.pin (4/18/2008)


    If the data set is large, and there are no FKs defined on the table, a faster method might be to SELECT INTO a physical table (which will create...

  • RE: Removing Duplicate Records

    DAvid (4/18/2008)


    Are you sure you don't mean

    INSERT INTO phonebook SELECT

    [phonenumber],

    [firstname] ,

    [lastname] ,

    [company]

    FROM #tmp

    DROP TABLE #Tmp

    at the end

    Sure. I fixed the artice now.

    Thank you.

  • RE: Finding most recently inserted record

    God! What did I think when writting this query! 🙂

    Anyway, why Query Analyzer gives that results for these queries?

    46% : select * from myTable where id = (select max(id) from...

  • RE: ON or WHERE in JOINS

    I understood your point, you're completly right, thanks a lot.

  • RE: ON or WHERE in JOINS

    I see the first one, but why the second query works as a INNER JOIN? I use a LEFT JOIN.

    As I know (I'm not an expert btw) the difference is...

Viewing 7 posts - 16 through 22 (of 22 total)