Variable Size Sliding Window Algorithm W3schools Mysql Alter