postgresql where datetrunc month and year equal
snippet in sql

postgresql where datetrunc month and year equal

user6849

... WHERE date_trunc('month', b.col) = date_trunc('month', a.col);