Hi! I can’t figure how to generating an ordered SQL datetime values. Is it possible to generate ordered SQL datetime values incremented in each iteration with N number of hours ?
Example:
2017-04-01 00:00:00
2017-04-01 03:00:00
2017-04-01 06:00:00
2017-04-01 09:00:00
…
2017-04-02 12:00:00
2017-04-02 15:00:00
2017-04-02 18:00:00
2017-04-02 21:00:00
Any advice and suggestions will be greatly appreciated.