I have a postgresql table with a column of type timestamp without timezone
. Every row increases/decreases by 1 minute eg:
2015-07-28 01:35:00
2015-07-28 01:34:00
2015-07-28 01:33:00
...
...
2015-07-27 23:59:00
2015-07-27 23:58:00
2015-07-27 23:57:00
I am trying to write a query that will select all the rows between a certain date range, but also during a specific time range for those days, eg: Select all rows between 2015-05-20 to 2015-06-20 during 08:00:00 to 16:00:00.
Everything i've tried so far doesn't seem to take both the date + time requirement into account.