I\'m working with Impala and Hive, so I don\'t know if I have fancy functions that Oracle or MSQL provide
So , having a table of values and timestamps
|--