In the following conditions:
the select clause references a column that contains an aggregate function that is not listed in a group by clause.
the select clause references a column that contains an aggregate function and other column or columns that are not listed in the group by clause.
one or more columns or column expressions that are listed in a having clause are not included in a subquery or a group by clause.
There will be the same calculations to repeat for every row.