Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

combine islands dates sql

SELECT
    ROW_NUMBER() OVER(ORDER BY StartDate,EndDate) AS RN,
    StartDate,
    EndDate,
    LAG(EndDate,1) OVER (ORDER BY StartDate, EndDate) AS PreviousEndDate
FROM
    #OverlappingDateRanges
Source by bertwagner.com #
 
PREVIOUS NEXT
Tagged: #combine #islands #dates #sql
ADD COMMENT
Topic
Name
9+3 =