SQL to determine multiple date ranges (SQL Server 2000)

后端 未结 5 1098
小蘑菇
小蘑菇 2021-01-15 01:20

I have a table which contains an ID and a Date for an event. Each row is for one date. I am trying to determine consecutive date ranges and consoli

5条回答
  •  孤城傲影
    2021-01-15 01:31

    This SO Question might help you. I linked directly to Rob Farley's answer as I feel this is a similar problem.

提交回复
热议问题