Forum Replies Created

Viewing 15 posts - 3,976 through 3,990 (of 4,085 total)

  • RE: SET ANSI_NULLS ON/OFF

    inuts (9/2/2009)


    Can anyone guide with a logic for why ANSI_NULLS is ON by default?

    Because it's the standard and it increases code portability. On top of that, it's easy...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to find missing numbers in a sequence

    Dave Ballantyne (9/3/2009)


    Note that this will return potentially false positives for end of range..

    Also it will not detect if the initial receipts are missing.

    Do you know the expected ranges to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SSAS aggregate on month Level

    The key that you are using for your month dimension represents both the month and the year even though the name column you are using shows only the month. ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Add Details rows to a SSRS report

    It helps if you have a tally (or numbers) table, but it's easy enough to generate one on the fly. I've used the sys.columns table here, which should be...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Help w/my Update Logic

    Here is what I believe is happening. Your FROM statement is doing an implicit join on the two tables. It is then calculating the original value for each...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Calculate Groups based on date ranges (aka episodes of care)?

    peterzeke (9/2/2009)


    To Drew Allen: if you look carefully at the data, you'll see that the datediff ("DAYS") between FROM_DATE (March 4, 2005) and TO_DATE (June 6, 2005) for row #4...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Calculate Groups based on date ranges (aka episodes of care)?

    Just to clarify. Shouldn't 4, 5, and 6 be in the same group, because the length of time between 4 and 5 is less than 60 and the length...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Update from multiple records

    Try this approach.

    WITH UpdateRank AS (

    SELECT RecordTS, ObjectID, Value, Row_Number() OVER ( PARTITION BY ObjectID ORDER BY RecordTS Desc) AS RowNum

    FROM #mysourcetable

    )

    UPDATE...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Need OUTER JOIN with INNER JOIN (3 tables)

    You DO NOT want to do a CROSS JOIN here. The problem with your original query is that a LEFT outer join will return all records from the LEFT...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to do a subquery in derived column

    The Conditional Split Task can only access information in the Data Flow, so you need to do your lookup before you get to the conditional split. You'll also need...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: MDX Help needed

    Without access to your cube, it's really hard to come up with the exact syntax, but you're going to need something like the following

    Generate(

    ( x.CurrentMember, y.CurrentMember...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: MDX Help needed

    You haven't really given enough information for us to help you. Do you want the max date for the entire cube, for "Y Name", or for the "My Name,...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SQL Server not evaluating WHERE before Casting?

    Riz Gulamhussein (8/29/2009)


    In your original posting, I'd say it's the SELECT that's failing even before the WHERE is applied.

    Nope. SQL evaluates the WHERE clause before it evaluates the SELECT...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: FIFO

    This was recently discussed in the following thread

    http://www.sqlservercentral.com/Forums/Topic771804-338-1.aspx

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Update from multiple records

    If you want a detailed answer to your question, read and follow the

    Forum Etiquette.[/url]

    Basically you want to use Max() and Group BY

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 3,976 through 3,990 (of 4,085 total)