• SQL_Enthusiast (1/29/2013)


    Sorry for the last minute addtion. Thank you for looking at this again. Here is the same data in Excel. Rows 7 & 8 I would expect to see returned while the rest are skipped.

    Count me out of this one. I have tried to have you see this from the eyes of somebody offering their time to help you once again post information that is not letting us run queries. We don't know your tables and we are not familiar with your business.

    We are nearly 15 posts into this and still we can't actually run a query.

    Post something in an actually consumable format and you will find people helping and NOT mentioning articles about how to post. You should read it sometime so you have an idea of what we mean.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/