GROUP BY, HAVING, or aggregate functions are not allowed in the recursive part of a recursive common table expression '%1!s!'. ...