SyntaxFix
Write A Post
Hire A Developer
Questions
This is the simplest way I know to get the first day of the previous month:
Step 1: Move data to Postgres
Step 2:
select date_trunc('month', getdate()) - '1 MONTH'::interval;