Forum Replies Created

Viewing 11 posts - 16 through 26 (of 26 total)

  • RE: Need help getting first value in a column

    Disregard

  • RE: Need help getting first value in a column

    Perhaps "first" means the order in which the data was inserted into the table. It's like "First come, first served". This may not be the perfect SQL definition...

  • RE: Need help getting first value in a column

    DECLARE @TABLE1 as TABLE (ROWSEQ INT IDENTITY, ID INT, SUBID INT, COMPLETE INT, LOCATION CHAR(20))

    INSERT INTO @TABLE1

    SELECT 2000, 0, 0, 'GEORGIA' UNION ALL

    SELECT 2000, 0, 0, 'TEXAS' UNION ALL...

  • RE: Using 'XYZ' where ever null data is existing in the column

    UPDATE MyTable set MyField = 'MyField was NULL' where MyField IS NULL

    UPDATE MyTable set MyField = 'MyField was not NULL' where MyField IS NOT NULL

  • RE: 95th percentile

    I don't claim to be an expert in either SQL or Excel but I tested the method shown above with the original data values given and that method does not...

  • RE: Sequence-numbering groups

    WayneS (10/23/2010)


    gmrose (10/23/2010)


    Out of curiosity, how many records are you processing? And did you try out the script that I posted?

    Wayne

    Thank you (and all of the others) for your...

  • RE: Sequence-numbering groups

    Out of curiosity, how many records are you processing? And did you try out the script that I posted?

    Wayne

    Thank you (and all of the others) for your suggestions. ...

  • RE: Sequence-numbering groups

    Thank you again to Lutz and Wayne. I updated my script per Lutz' suggestions to use table #tmpChecks instead of table variable @tmpChecks. I made some minor adjustments...

  • RE: Sequence-numbering groups

    LutzM (10/21/2010)How many rows does your table have? And what indexes?

    Please post complete DDL for the table in question.

    Edit: the actual execution plan would be great, too...

    This table currently has...

  • RE: Sequence-numbering groups

    After I finish reading the article, I will need to build a new statement using its suggestions. The one that I built based on Lutz's solution has been running...

  • RE: Sequence-numbering groups

    Thank you both for your help, Craig for the interesting article which I have started reading, and Lutz for the solution I needed.

    gmrose

Viewing 11 posts - 16 through 26 (of 26 total)