I'm looking to rank the number of a specific call based on the volume of calls that precede it within a 30 day window prior to the current call. The challenge ... I am ranking calls over a long period of time so the 30 day predeing window is not fixed. Essentially it is a running total count on a 30 day rolling window.
This code almost works, however I need the RANGE_N section to be variable/rolling vs fixed.
SELECT
↧