This version is superior: AND timestamp >= DATE_TRUNC('month', DATE_ADD(CURRENT_DATE, -DAY(CURRENT_DATE)))
AND timestamp < DATE_TRUNC('month', CURRENT_DATE) as it allows the queries to run more efficiently using the physical partitioning inherent in how timeseries-based datasets are stored on dis...