how to get months from start month to end month continously in postgres code example
Example 1: select current_timestamp - interval '3 days';
SELECT current_timestamp - interval "3 days";
-- 2020-06-24 08:25:31.759993 America/Los_Angeles
Example 2: substract variable amount of minutes from timestamp postgresql
SELECT p.date_time + number_of_seconds * INTERVAL '1 second'
FROM photo p
WHERE p.id = 1;