Answers for "postgres between date example"

SQL
1

postgres date difference seconds

-- difference in seconds between two dates

select extract(epoch from ('2020-03-30 09:55:56'::timestamp - '2020-03-30 08:54:55'::timestamp));
-- result : 3661
Posted by: Guest on October-14-2020
0

postgres between dates

SELECT user_id 
FROM user_logs 
WHERE login_date BETWEEN '2014-02-01' AND '2014-03-01'
Posted by: Guest on September-03-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language