Selecting a range from mixed alpha-numeric column

  • There is no range specified in the 5th query, so you should be getting all values.

    If it was easy, everybody would be doing it!;)

  • Are you sure you set the partRange derived column to return Bigint values? Because your WHERE clause is acting like it's character data. (assuming you've actually put in a WHERE clause on the last recordset))

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

  • Trader Sam (3/17/2008)


    There is no range specified in the 5th query, so you should be getting all values.

    I guess I should have looked at the code a little closer. you are right about the 5th query. Sorry for the flub.

    And thanks to all for the great solutions.

  • Heh... "Always look eye, Angisan..."

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Jeff Moden (3/17/2008)


    Heh... "Always look eye, Angisan..."

    So I'm NOT the only one quoting Pat Morita....:)

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

  • Mixed bag, actually... some of it is from ShoGun...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • biscuit (3/17/2008)


    Sorry for the flub.

    Don't worry about it ... we all have our moments. That's why it helps having so many sets of eyes on here to look at things.

    If it was easy, everybody would be doing it!;)

  • Trader Sam (3/17/2008)


    biscuit (3/17/2008)


    Sorry for the flub.

    Don't worry about it ... we all have our moments. That's why it helps having so many sets of eyes on here to look at things.

    "Z'actly" 😉

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 8 posts - 31 through 37 (of 37 total)

You must be logged in to reply to this topic. Login to reply