• Thanks for the ddl and data. What I don't understand is the desired output. Since WKBW has a bit fewer rows let's look at that one.

    OUTPUT

    WKBW 7/5/13 12:00 PM 7/5/13 2:00 PM

    WKBW 7/9/13 11:30 AM 7/9/13 12:30 PM

    WKBW 7/12/13 12:30 PM 7/17/13 1:00 PM

    WKBW 7/19/13 12:30 PM 7/19/13 2:00 PM

    Not sure why your skip the first row 11am - 11:30am and start with the row that begins at noon. Do you only want groups where there are least 2 consecutive times or am I missing something?

    Also, why do you have one row that starts on 7/12 but end on 7/17? There is nothing in the data to suggest that. What about the 18th?

    _______________________________________________________________

    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/