Syntax error in HAVING clause. (Error 3133)

You entered an SQL statement that has an invalid HAVING clause.

Possible causes:

  • A reserved word or argument name is misspelled or missing.
  • Punctuation is incorrect.