SQL Group by Month - Examples in MySQL and Postgres Quick Summary In MySQL you'll want to group by two