A SELECT statement containing a GROUP BY clause that sorts rows by the column referenced in the GROUP BY clause.