Construction should include applying a GROUP BY clause in a query that uses a group function in the SELECT statement.