sql sliding window - finding max value over interval
问题 i have a sliding window problem. specifically, i do not know where my window should start and where it should end. i do know the size of my interval/window. i need to find the start/end of the window that delivers the best (or worst, depending on how you look at it) case scenario. here is an example dataset: value | tstamp 100 | 2013-02-20 00:01:00 200 | 2013-02-20 00:02:00 300 | 2013-02-20 00:03:00 400 | 2013-02-20 00:04:00 500 | 2013-02-20 00:05:00 600 | 2013-02-20 00:06:00 500 | 2013-02-20