A Simple SRS Algo (in Ugly SQL)

from blog taylor.town, | ↗ original
There are plenty of excellent off-the-shelf SRS algorithms out there, but I needed something (1) optional, (2) debuggable, and (3) cheap.