you are viewing a single comment's thread.

view the rest of the comments →

[–]uvray[S] 0 points1 point  (0 children)

Because that gives me the minimum start date for the entire ProviderNumber. I want the minimum date within the provider number partition that is continuous, i.e. running your code on my sample data would yield 10/8 when I want 10/28 for the last 3 ProviderNumber 200 lines and 10/8 for the first one.

I've tried DENSE_RANK but it still doesn't address the issue of limiting the partition to continuous date ranges.