Forum Replies Created

Viewing 15 posts - 106 through 120 (of 201 total)

  • RE: Removing duplicate character from string

    Unfortunately the lag function is not supported on the servers on site, they have SQL Server 2008.

    Any other option please?.

  • RE: Removing duplicate character from string

    Bob JH Cullen (10/19/2015)


    Maybe soundex() would be a valid approach if it is the pronunciation that matters.

    'bok', 'book' and 'booookkk'' all produces a value of B200 in a quick test.

    I...

  • RE: Removing duplicate character from string

    What will you want to do about legal words such as "BOOK", "SEEN", or "ABBOTT"?[/quote]

    Even in those legal names repetition will be removed because what matters more is how is...

  • RE: Removing duplicate character from string

    WHY DO YOU WANT TO DO THIS?

    [/code][/quote]

    First i would like to thank you for your reply, first time i hear of this LAG function 🙂

    This function is needed to cross...

  • RE: Removing duplicate character from string

    I have written the following code but it has a syntax error that i am not able to fix, not sure if case clause is supported inside CTE or what.

    declare...

  • RE: String Comparison function

    mister.magoo (10/14/2015)


    To account for repeated letters, I use row_number() partitioned by letter to assign a "positional" value.

    So, for the word "test", the results of CTE "LETTERS1" would be

    L P

    e...

  • RE: String Comparison function

    Thank you very much mister.magoo.

    Your solution is great, the problem i had in mine is when a letter was duplicated in one of the words which is S in...

  • RE: CTE to improve performance

    GilaMonster (10/12/2015)


    nadersam (10/12/2015)


    GilaMonster (10/12/2015)


    Jeff suggested temp tables. Be careful with table variables, because they don't have statistics, the row estimations are miles off usually and they can (and do) result...

  • RE: CTE to improve performance

    GilaMonster (10/12/2015)


    Jeff suggested temp tables. Be careful with table variables, because they don't have statistics, the row estimations are miles off usually and they can (and do) result in really...

  • RE: CTE to improve performance

    Thanks Gail for your reply.

    I asked this to be able to decide how will i break my view into parts and use a stored procedure instead.

    Jeff suggested taking out the...

  • RE: CTE to improve performance

    Will try that

    Thank you very much

  • RE: CTE to improve performance

    Thank you Jeff,

    I guess CTE is not the answer to this issue, i will try to look into using a stored procedure instead.

    I have a question please related to that.

    If...

  • RE: Counting results of TSQL

    Never mind i was able to solve it.

    Thanks

  • RE: String Comparison function

    Again i would like to thank you all.

    Jason,

    Thanks for the full outer join it reduced the duplication in code and having to insert into table variables, i have applied that.

    Chris,

    To...

  • RE: String Comparison function

    Jason A. Long (8/11/2015)


    I don't see where you mentioned a "sort issue" before... What exactly is the sort issue?

    Please check my previous reply above

    "No it will return success as order...

Viewing 15 posts - 106 through 120 (of 201 total)