https://stackoverflow.com/questions/4531577/how-to-extract-year-and-month-from-date-in-postgresql-without-using-to-char-fu
Anonymous
Prototype before polishing. Get it working before you optimize it.