I have a sql table that contains 2 columns date and value (there are actually more and I am performing partition by clauses, however for sake of the example, I think the simpler