Suppose we have data that comes in a random times, say at 1, 5, 22, 25, 36, 41, ..... minutes. I am interested, for each row, how many entries exist for some number of minutes thereafter, e.g. say for within 15 minutes later. For the first entry timestamp (1), there is just 1 entry (at time value 5) within 15 minutes later. For the second entry (5), there are no entries (as 22 > 5 + 15). For the third entry (22), there are two, at 25 and 36 minutes, and so on. I'd like to both count the number of entries and then do other operations on the extracted sets. How might this be done, please? My data can be millions of records and pivoting is likely impossible due to memory constraints. Thx -