Forum Replies Created

Viewing 15 posts - 1,636 through 1,650 (of 4,085 total)

  • RE: datediff plus n days

    This is a variation on packing intervals.  You can read more about that at New Solution to the Packing Intervals Problem.  You just need to use the desired tolerance...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Daenerys learns of the sacking of Highgarden

    Spam reported.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Finding Consecutive Values For a Record

    RonMexico - Monday, August 28, 2017 11:22 AM

    I'm using a linked server.  That appears to be creating the problem.

    The error specifically states...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Column name assignment

    Sean Lange - Monday, August 28, 2017 9:15 AM

    Steve Jones - SSC Editor - Monday, August 28,...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Nested sub queries with SUM, optional parameters in Storedprocedure

    Yes, the problem is here.

    AND ((M.IDHuis = @IDHUIS) or (@IDHUIS = NULL))
               AND ((H.IDAfd = @IDAFD) or (@IDAFD = NULL))

    NULL...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Eliminate cursor with while loop inside it

    I believe that the following article addresses this topic, or it should at least get you started in the right direction.  Solving FIFO Queues Using Windowed Functions

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: how to use row number to insert into the same table ?

    Phil Parkin - Thursday, August 24, 2017 7:10 AM

    zorbatouche - Thursday, August 24, 2017 6:45 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: #Error using Expression

    You've posted this in a T-SQL forum, but this is not T-SQL.  I'm guessing SSRS.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Inserting apostrophes into result set

    I would use QUOTENAME instead, because it will handle input data that contains apostrophe's.
    Select 'Update mick_settings Set setting_value = ' + QUOTENAME(SETTING_VALUE, '''') + ' Where SETTING_NAME...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SQL Server Management Studio Tips

    You should be aware that the regex syntax changed dramatically from SQL 2014 to SQL 2016.

    Also, keyboard shortcuts vary depending on the keyboard mapping scheme. Occasionally, my...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Problem with Group by and Sum

    Pictures of your data do not help.  Please post scripts of your sample data as outlined in the first link in my signature.

    You're sample data does not include...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: needed to make a

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Date time difference calculation

    Sample data and expected results, please.  You can find a link in my signature that explains how.

    The best way to do this is with a computed column, but...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Combinations question with a twist

    "Are all cities covered" is a much simpler question to answer than giving you all possible combinations of values.  I did write a recursive CTE to answer this question, but...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Add prefix to results

    t2 36824 - Friday, August 11, 2017 6:45 AM

    How's this:

    That's still a picture, so it still doesn't really help.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 1,636 through 1,650 (of 4,085 total)