Group by having count 1. Count sql. функция count sql. оператор count в sql. count distinct sql.