Question : postgresql where datetrunc month and year equal
Answered by : augusto-vicente
... WHERE date_trunc('month', b.col) = date_trunc('month', a.col);
Source : https://stackoverflow.com/questions/4531577/how-to-extract-year-and-month-from-date-in-postgresql-without-using-to-char-fu | Last Update : Mon, 01 Feb 21