Sql mode only full group by. Group by sql. having sql. оператор group by в sql. оператор having в sql.