Forum Replies Created

Viewing 15 posts - 241 through 255 (of 621 total)

  • RE: Question of the Day for 21 Dec 2009

    Now, it just so happens that yesterday was my birthday, and I know I never disclosed it. I thought for a moment I had encountered some one with uncanny...

  • RE: assigning a record form one table to another

    Greg Snidow (12/22/2009)


    Lynn Pettis (12/22/2009)


    set @MemberCount = @@rowcount; -- How many members with out download codes

    set rowcount @MemberCount; -- SQL Server 2000

    Lynn, that's a neat little trick I never thought...

  • RE: assigning a record form one table to another

    Lynn Pettis (12/22/2009)


    set @MemberCount = @@rowcount; -- How many members with out download codes

    set rowcount @MemberCount; -- SQL Server 2000

    Lynn, that's a neat little trick I never thought of. ...

  • RE: assigning a record form one table to another

    I think Lynn's solution meets all your needs then. I did not see it until after I started working on it.

  • RE: assigning a record form one table to another

    mrpolecat (12/21/2009)


    update downloadcode set...dlcdateissued = getdate

    mrpolecat, I don't see a column 'dlcdateissued' in either of your tables. Is it supposed to be dlcdatereceivied[SIC]? When I change it to...

  • RE: Assign Group Numbers to Sets of Records

    ehlinger (12/21/2009)


    Side note: Still can't post code with the word drop in it. It won't preview or post. I noticed you had no problem and just thought...

  • RE: Assign Group Numbers to Sets of Records

    ehlinger, I apologize for any confusion, but I just took the time to finish reading Jeff's article, and I realized I have omitted two important aspects; locking the table, and...

  • RE: Assign Group Numbers to Sets of Records

    ehlinger (12/18/2009)


    The misspellings of the name is correct because I'm matching on the dm fields.

    Okay, well if that is the case, this simpler version should help. I put the...

  • RE: Assign Group Numbers to Sets of Records

    Yeah, I was not too clear on which columns would determine a dupe, so I thought I would just include them all, and then the OP can comment out what...

  • RE: Assign Group Numbers to Sets of Records

    Just checkin in here. I took your records for Jon Menneke, and duplicated them, but changed the birthday and primary_id, just to simulate what I was talking about by...

  • RE: Assign Group Numbers to Sets of Records

    mrpolecat (12/18/2009)


    one more step from Greg's code is to update the #mergelist table mergeid with the identity from the dups table joined on the double metaphone fields

    DOH! I totally missed...

  • RE: Assign Group Numbers to Sets of Records

    ehlinger, you don't need a cursor. You could try something like this...

    IF OBJECT_ID('TempDB..#Dupes','u') IS NOT NULL

    DROP TABLE #Dupes

    SELECT DISTINCT

    ...

  • RE: Need help in complex query/subquery

    mak101 (12/17/2009)


    I wanted it something like that in one query.

    Ok, here is where a little explanation may come in handy. If you look at my solution, the one comment...

  • RE: Need help in complex query/subquery

    Lynn Pettis (12/17/2009)


    Regarding the expected results:

    EmpName Reg TourStart TourEnd FOrdDate FOrdType FtOrdAmt LOrdDate LOrdType LOrdAmt

    John West 8/15/09 - 8/17 B 57K 9/17 A 78K

    Mike South 9/1/09 11/15/09 9/4 A...

  • RE: Need help in complex query/subquery

    mak101, while I agree with Lynn's assessment that you need to try it yourself first, I also can see where to someone new to SQL, this problem would be difficult...

Viewing 15 posts - 241 through 255 (of 621 total)