Forum Replies Created

Viewing 15 posts - 1,336 through 1,350 (of 4,085 total)

  • RE: Compare two rows in the same table for equality in SQL

    Paulo de Jesus - Sunday, January 21, 2018 7:38 AM

    I'm guessing this is what you are looking for:


    WITH
    Duplicates
    AS
    (
        SELECT    [Policy]
        FROM    Insurance
        GROUP BY [Policy]
        HAVING...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Compare two rows in the same table for equality in SQL

    There are a couple of ways that you can handle this depending on what you want to do with the results.  Probably the most common is to use a CTE...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Coding for Date Range for Specific Weekday- Time (Week To Date) Query

    Assuming that you have no future dates, you only need to find the begin date and then filter based on that.

    DECLARE @pStartDate SMALLDATETIME
    SET @pStartDate =...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Question Regarding Date logic

    KGJ-Dev - Friday, January 19, 2018 12:18 PM

    Hi 

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Question Regarding Date logic

    KGJ-Dev - Friday, January 19, 2018 11:23 AM

    Hi Chris and Jeff thank you for the replies. i will hold these values in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Duplicate record - almost!

    paul.ette - Friday, January 19, 2018 9:20 AM

    Oh, by the way the post doesn't appear to mention anything to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Compare previous and next rows to derive output

    akash_singh - Friday, January 19, 2018 7:27 AM

    Hi Vivek,

    Thank you for your quick response on the query and efforts. As shown in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Grouping records with dynamic groups for report

    It comes from the CROSS APPLY.  I did not alter the underlying tables, if that's what you mean.

    Make sure that you thoroughly understand this code before deploying it,...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Debit Close and Aging

    This forum is primarily English. (Türkçe bilmiyoruz.)  You'd get much more of a response if you can post in English.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Grouping records with dynamic groups for report

    This is close.  Your expected results don't seem to match your description.  Specifically rows 40-42 should be in the same group based on "Group continues as long as SkipPrintCompLine= ‘Y’",...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Grouping records with dynamic groups for report

    First, we need both sample data AND expected results.  You've only provided half.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Duplicate record - almost!

    Most people here aren't going to open a zip file posted on the internet.  I suggest that you resubmit your data as outlined in the first link in my signature.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Searching a comma delimited string using wildcard multiple values

    Use a string splitter on both the table field and the parameter, and then use an equality comparison.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: what am i doing wrong -- char(240)

    goher2000 - Tuesday, January 16, 2018 2:03 PM

    it didn't work, probably something to do with collation, I am on SQL_Latin1_General_CP1_CI_AS

    print CONVERT(VARCHAR(3), ASCII('≡')) +...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Using IN and Case When splitting Numeric values

    luissantos - Tuesday, January 16, 2018 12:26 PM

    Hello Comunity and happy new year for all of You.

    I would like to know how...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Viewing 15 posts - 1,336 through 1,350 (of 4,085 total)