Forum Replies Created

Viewing 15 posts - 1,231 through 1,245 (of 10,144 total)

  • RE: Fuzzy Matching

    This article[/url] describes a CLR function to calculate the Levenshtein-Distance. Implementing the full functionality in an iTVF is tricky and results in poor performance. Here's an iTVF which is almost...

  • RE: Avoiding Stored Procedures

    Sean Redmond (8/30/2016)


    It seems to me as if the modern development method is the problem.

    Get your user-stories implemented as soon as possible.

    The database is «persistence layer». It might as well...

  • RE: Are the posted questions getting worse?

    Beatrix Kiddo (8/26/2016)


    Shame on you, Chris ;-). No chopsticks in Thailand for one thing.

    Following those directions on Google maps, it shows a place claiming to be a chinese &...

  • RE: Are the posted questions getting worse?

    Luis Cazares (8/26/2016)


    Beatrix Kiddo (8/26/2016)


    would like to hear your Chinese restaurant recommendations ...

    Go to Canal street. Face east. Turn right on Mott. Go down a block. Turn right. Thai restaurant...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (8/25/2016)


    Got to the following from a LinkedIn email. Not sure about a few of the answers.

    https://intellipaat.com/interview-question/sql-interview-questions/

    "First, a row is processed in the outer doubt" :w00t:

  • RE: Executing dynamic functions in table select

    Sergiy (8/25/2016)


    ChrisM@Work (8/25/2016)


    Of course not. The function calculates US holidays because most users of ssc are in or from the US. I'm in the UK and I've written a similar...

  • RE: Executing dynamic functions in table select

    Sergiy (8/24/2016)


    ChrisM@Work (8/24/2016)


    paulo.margarido (8/24/2016)


    i'm aware of what "inline table-valued functions" are, i have a few of my own in the DB

    what i ask is how can i do it that...

  • RE: Executing dynamic functions in table select

    paulo.margarido (8/24/2016)


    some sample return data:

    FuncaoResultdate

    ------------------------------------------------------------------------------------------------------------------------------------------

    DATEADD(d, 39, dbo.fncDiaPascoa(@Year))2016-05-05 00:00:00.000

    dbo.fncProcurarData(DATEADD(D, 0,DATEADD(M, 9, DATEADD(YY, @Year-YEAR(0), 0))), 1, 7, 2 )2016-10-03 00:00:00.000

    dbo.fncCalcularData(DATEADD(D, 0,DATEADD(M, 7, DATEADD(YY, @Year-YEAR(0), 0))), 2, 4)2016-08-29 00:00:00.000

    fncDiaPascoa() gives easter day for...

  • RE: Executing dynamic functions in table select

    paulo.margarido (8/24/2016)


    i'm aware of what "inline table-valued functions" are, i have a few of my own in the DB

    what i ask is how can i do it that way

    if you...

  • RE: Executing dynamic functions in table select

    paulo.margarido (8/24/2016)


    Thanks for the response

    There are not big performance issues, the table has only 400 rows

    but is for the sake of making it better, and learn something with it

    what do...

  • RE: Executing dynamic functions in table select

    Hats off to you for recognising that this solution can be improved and seeking advice.

    Most folks would recommend a table holding the dates and districts, but calculating the holidays...

  • RE: Can anyone explain this....

    david.earl (8/24/2016)


    Hi,

    The results of your test show exactly what I was getting at. The final result shows 0 while the logic suggests it should be 1.

    essentially if its >= 0.5...

  • RE: Optimize update with an index

    WhiteLotus (8/23/2016)


    Thanks for the feedback mate

    No index in table at all ( I click on index folder and nothing comes out )

    Actually this is deadlock case as there are...

  • RE: SQL to sum last 12 month values from same table

    DuncEduardo (8/23/2016)


    in the past, I'd have used embedded SQL, a variable, and WHILE construct but seems bit overkill for this.

    bit rusty with Windows functions

    Sure no problem.

    Can you set up your...

  • RE: Temp Table 'vs' Table Variable 'vs' CTE.

    Alan.B (8/23/2016)


    growlingly poor English

    :hehe::hehe::hehe: +1

    I never heard the word growlingly before so I looked up the Webster definition.

    Growl´ing`ly

    adv.1.In a growling manner.

    'Zackly. By the time you've finished reading it...

Viewing 15 posts - 1,231 through 1,245 (of 10,144 total)