views:

13

answers:

0

Is there a way in SQL Server to parition over a date range?

I'm looking for something along these lines:

SELECT ROW_NUMBER() OVER (PARTITION BY RANGE(DateTimeField) INTERVAL(1))

I want to group rows that are within one day of each other.