Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: How to remove leading zeros?

    quote:


    this should do it:

    cast(left(annoying_column,patindex('%ed%',annoying_column) - 1) as integer)

    you can either cast the other column as an integer, or throw another cast...

  • RE: How to remove leading zeros?

    this should do it:

    cast(left(annoying_column,patindex('%ed%',annoying_column) - 1) as integer)

    you can either cast the other column as an integer, or throw another cast around this whole thing to get it back...

Viewing 2 posts - 1 through 2 (of 2 total)