generating sql comand "Having" with two conditions

Description

When trying to generate a search with the "Having" clause, there is a small poblem while riding queryover with two conditions.

Examples:

If I put just the condition of zero, it generates "HAVING".

but if use: not generate the sql "HAVING"

in other words

Or

using:

in other words

Just because I include a further condition is failing to generate "Having clause"

Thank you in Advance

Environment

None

Assignee

Unassigned

Reporter

glautter glauber

Components

Affects versions

Priority

Major
Configure