Forum Replies Created

Viewing 15 posts - 571 through 585 (of 6,036 total)

  • RE: query performance

    Couple of points about the query.

    The query updates the table with values from a copy of the same table grouped by unique key

    TimeId, [GeoId], [XValue].

    Every record with the same...

  • RE: DelimitedSplit8k and Performance

    Try to separate GLL together with its CROSS APPLY and GLS together with its CROSS APLY into different subqueries (in form of either der. I've tables or CTEs) and join...

  • RE: query performance

    The query contains 3 instances of #OUT_DBD__calculateMeasureByAlgorithm_Q_WNF_AFFECTEDAREA_CumulativeCasesAllSeasons which are joined to [DM_Ref].[ref].[Time] 2 times.

    I suspect there is a better way to retrieve required data.

    I also suspect the temp tables don't...

  • RE: BCP error -Unable to open BCP host data-file

    Rick-153145 - Monday, June 11, 2018 6:40 AM

    Jeff Moden - Thursday, July 27, 2017 1:54 PM

  • RE: GUIDs as clustered index

    Jeff Moden - Saturday, June 2, 2018 4:54 PM

    Your looking at the guy that brought Expedia.com to it's knees...

  • RE: Will Coding Be Less Important?

    Every compiler is a code generator.

    A generator of Machine code - aka Assembler.

    Telling a machine what to do and let it find a way to execute the request - it's...

  • RE: Will Coding Be Less Important?

    "eventually we'll tell systems what we want and they'll build algorithms"

    Does not quite work even with actual people. 🙂

    In fact, they build algorithms, but usually it's not exactly what you...

  • RE: GUIDs as clustered index

    ScottPletcher - Friday, June 1, 2018 1:10 PM

    Definitely need index overhauls.  [And wow do you all love guids!]  Would you mind running...

  • RE: GUIDs as clustered index

    Jeff Moden - Friday, June 1, 2018 7:40 AM

    xsevensinzx - Friday, June 1, 2018 7:21 AM

    June 1, 2018 at 7:53 am

    #1992637

  • RE: How to get Last Occurance of % value in the string...

    This one should return the expected result.
       SELECT *,
            COALESCE(
                RIGHT([StringBeforeLast%], NULLIF(patindex('%[^0-9,.]%', REVERSE([StringBeforeLast%])),0) -1),
                [StringBeforeLast%],
                '') + '%' ActualOutcome
        FROM (
            select S.description
            ,datalength(S.description) - nullif(CHARINDEX('%', reverse(S.description)),...

  • RE: How to get Last Occurance of % value in the string...

    Alan.B - Tuesday, May 29, 2018 11:29 AM

    ChrisM@Work - Tuesday, May 29, 2018 10:07 AM

  • RE: How to get Last Occurance of % value in the string...

    Also,
    row #2 contains the string '1'.
    No '%' in there.
    Row #2 in #expectedoutcome contains '1%'
    How does it correlate?

  • RE: How to get Last Occurance of % value in the string...

    sgmunson - Wednesday, May 30, 2018 10:40 AM

    asita - Tuesday, May 29, 2018 9:24 AM

  • RE: GUIDs as clustered index

    Jeff Moden - Thursday, May 31, 2018 8:32 AM

    Sergiy - Wednesday, May 30, 2018 6:48 PM

    May 31, 2018 at 8:22 pm

    #1992590

  • RE: GUIDs as clustered index

    Whatever kind of identity you choose to use - it's the worst possible choice for a clustered key.

    The best candidate for a clustered index is a column (set...

Viewing 15 posts - 571 through 585 (of 6,036 total)