Tables referenced in a HAVING clause must be specified in one of the following:FROM clause WHERE clause SELECT expression list Non-aggregate condition