Answers for "sql timestamp last month postgresql"

SQL
1

last 6 months postgresql

CURRENT_DATE - INTERVAL '6 months'
Posted by: Guest on April-01-2020
0

postgresql get last day of month

SELECT (date_trunc('month', '2017-01-05'::date) + interval '1 month' - interval '1 day')::date
AS end_of_month;
Posted by: Guest on March-05-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language