- 0
SQL Query to Find Consecutive Dates
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft announces SQL Server 2025 with native vector support
By pradeepviswav,
- microsoft
- sql server 2025
- (and 2 more)
- 0 replies
- 0 views
-
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
- 2 views
-
- 0 replies
- 12 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
- 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
https://www.neowin.net/forum/topic/1160902-sql-query-to-find-consecutive-dates/Share on other sites
7 answers to this question
Recommended Posts