GAPS and ISLANDS in SQL Server

Bert Wagner
Bert Wagner
7.2 هزار بار بازدید - 5 سال پیش - Sometimes you may want to
Sometimes you may want to identify continuous sequences of data while skipping over rows of "missing" data.  This is known as the Gaps and Islands problem and today we look at one solution for it on a dataset of date ranges using window functions.

Subscribe and turn on notifications to never miss a weekly video: https://www.seevid.ir/c/DataWithBer...

Running totals with Window functions:
How to Generate a RUNNING TOTAL in SQ...

Related blog post with example code:
https://bertwagner.com/2019/03/10/gap...

Follow me on Twitter:
Twitter: bertwagner
5 سال پیش در تاریخ 1397/12/21 منتشر شده است.
7,268 بـار بازدید شده
... بیشتر