- 0
SQL Query to Find Consecutive Dates
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft provides workaround for Windows apps broken by buggy SQL Server driver [Update]
By hellowalkman,
- patch tuesday update
- known issues
- (and 6 more)
- 0 replies
- 1 view
-
- 0 replies
- 7 views
-
SQL Server 2022 gets data virtualization, REST APIs with PolyBase
By Hamza Jawad,
- microsoft
- sql server 2022
- (and 5 more)
- 0 replies
- 3 views
-
SQL Server 2022 is the "most cloud-connected" release yet, now in preview
By Usama Jawad96,
- microsoft
- ignite 2021
- (and 16 more)
- 0 replies
- 2 views
-
- 0 replies
- 3 views
-
Question
limok
Hi,
I'm trying to develop a query that world count consecutive days from a list of from and to dates. Consider the below dates:
As you can see the first two rows are consecutive and total 5 days.
Please can you help!
Thanks,
Link to comment
Share on other sites
7 answers to this question
Recommended Posts