Forum Replies Created

Viewing 15 posts - 50,701 through 50,715 (of 59,078 total)

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Calvin Lawson (5/7/2008)


    OMG, everybody out of the pool, quick! Read this article, now! Do not write a single piece of SQL code until you've finished it, and understand...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    RyanRandall (5/7/2008)


    Nice work, Jeff. That plural table name must've been difficult for you to come to terms with 😀

    Heh... it kept me up all bloody night! But "When in...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Shamshad Ali (5/7/2008)


    Hello,

    My quewtion is related to replacing loop, I am very interested on this. coz i really want to improve performance and I can't find a way to...

  • RE: Running Total variable resolution

    Heh... remember, you asked what could be done to make this more readable...

    Here's one of your inserts including the indentation I found when I copied it... quick, you're...

  • RE: Running Total variable resolution

    Keith DuAime (5/7/2008)


    ok, I am getting the result set I finally need but it's still pretty messy, I abbreviated all the data needed but this code will run alone. Any...

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    You folks are absolutely the Best! I'm humbled by your awesome compliments and the testing that alot of you have taken the time to do and post.

    I've got a...

  • RE: Query Request

    You do realize that code will remove all single rows, correct?

  • RE: Cursor not working

    Michael Meierruth (5/7/2008)


    Heh... to be clear, I've never written a cursor except to show how slow they are... :hehe:

    Given that Jeff is in luv with cursors, we all really need...

  • RE: Dynamic View creation is taking long time

    shamshudheen (5/7/2008)


    Jeff,

    how i use COALESEC function for the following code

    SET @strValList2 = ''

    SELECT @strValList2 = @strValList2 +

    CASE

    WHEN vColName IS NOT NULL THEN '[' + vColName + ']'

    WHEN vColName IS NULL...

  • RE: Query Request

    Let's talk about just the ones for Category "A"... which one do you want to keep? The one with the lowest value EmpID or the highest?

  • RE: Performance Problem

    Ah... understood.

    Dunno why, but ever since I had a boss that wanted to pay me with "virtual money", I've been put off by the word "virtual". 😛 Haven't gotten...

  • RE: Tally Table

    I don't know about Sergiy, but the only big advantage I've found is that I don't have to convince reluctant DBA's into having two helper tables. I haven't tested...

  • RE: Working with strings

    tobe_ha (5/5/2008)


    I would also appreciate any idea that differs from mine.

    The concatenation method show in the article at the following URL might help... I certainly haven't tried it on 100,000...

  • RE: The T-SQL Quiz

    dfalso (5/6/2008)


    Jeff Moden (5/6/2008)


    Ummm... you certainly don't need a cursor to transpose a table. Cross-tabs, dynamic cross-tabs, and the occasional use of the Pivot function do the job in...

  • RE: The T-SQL Quiz

    dfalso (5/6/2008)


    Jeff Moden (5/6/2008)


    Ummm... you certainly don't need a cursor to transpose a table. Cross-tabs, dynamic cross-tabs, and the occasional use of the Pivot function do the job in...

Viewing 15 posts - 50,701 through 50,715 (of 59,078 total)