Answers for "postgres select from last month"

SQL
0

postgresql get last day of month

create function end_of_month(date)
returns date as
$$
select (date_trunc('month', $1) + interval '1 month' - interval '1 day')::date;
$$ language 'sql'
immutable strict;
Posted by: Guest on March-05-2021
0

postgres select from last 3 months

SELECT * from table where date >  CURRENT_DATE - INTERVAL '3 months'
Posted by: Guest on October-15-2020

Code answers related to "postgres select from last month"

Code answers related to "SQL"

Browse Popular Code Answers by Language