How to select in the query a time range of 1 hour?
SQL
select * from
history
where
clock == current_timestamp - interval '01:00:00'::timestamp;
DATA WITH FUNCTION to_timestamp
28689 2019-10-26 21:02:09 83.6353
28689 2019-10-26 21:01:39 83.6614
28689 2019-10-26 21:01:09 82.9015
28689 2019-10-26 21:00:39 82.9039
OUTPUT
Invalid input syntax
The desired output is a select where the clock
column that is a timestamp is within a one hour range of the values that were entered.