Home Forums SQL Server 2005 T-SQL (SS2K5) finding gaps between termination date and next enrollment date and filter by gap >= 45 days for year 2013 RE: finding gaps between termination date and next enrollment date and filter by gap >= 45 days for year 2013

  • Hi autoexcrement!

    Thank you again for your quick response.

    Could this be done in more steps but easier to follow?

    I tried reading upon what CTE and (SELECT RN = ROW_NUMBER() OVER (PARTITION BY

    do, but I cannot get the jist of it 🙁

    I will try and do what you suggested using the date filters.

    Thanks a lot for your time 🙂

    Tammy