SQL Server 2005 Partition Over Date Range

Posted by zimdanen on Stack Overflow See other posts from Stack Overflow or by zimdanen
Published on 2010-05-18T13:55:31Z Indexed on 2010/05/18 14:01 UTC
Read the original article Hit count: 208

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.

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about partition