A HAVING clause filters the results of a GROUP BY clause.
You can create HAVING clauses in the SELECT and INSERT INTO statements using the Having tab of Tabbed Editor.
To open Tabbed Editor, do one of the following:
In the top menu, select Query > Show Tabbed Editor.
On the Query toolbar, click
.
The Having tab of Tabbed Editor shows the HAVING clause as a tree structure with conditions and condition groups. Each group can include multiple conditions or nested groups connected by logical operators.
1. Go to the Having tab in Tabbed Editor.
2. To add a filter condition, do one of the following:
Click
for the current group.
Select the upper-level group operator, then select Add Condition.
3. In the filter condition template that appears:
Choose a logical operator:
Click the enter a value placeholder and choose a column or enter a constant.
Select the filter operator, such as =, <, or <>.
Click the enter a value placeholder and complete the condition with a column or constant.

4. Optional: To preview the query, click Text in the bottom panel of the Query Builder document.
You can create, modify, or remove groups and conditions in a HAVING clause.
1. Do one of the following to insert a new group:
Click
.
Select the upper-level group operator, then select Add Group.
Press Ctrl+Plus Sign.
2. Choose the logical operator for the group, for example, AND, OR, or NOT.
3. Click the enter a value placeholder and choose a column or specify a constant.
4. Choose a comparison operator from the list.
5. If required, specify the operand value.
6. Optional: To preview the query, click Text in the bottom panel of the Query Builder document.
To remove a condition, click
.
Alternatively, navigate to the condition and press Delete or Minus Sign.
To remove a group, do one of the following:
Click
for the group you want to remove.
Click its logical operator and select Remove Group on the shortcut menu.
Navigate to the group and press Delete or Minus Sign.
To remove all conditions and groups, click the upper-level operator and select Clear All.
You also can copy, cut, and paste conditions and groups using Ctrl+C, Ctrl+X, and Ctrl+V, respectively.
To navigate between conditions and condition groups, do the following:
Use Up Arrow, Down Arrow, Left Arrow, and Right Arrow to navigate between conditions and groups.
Use Left Arrow and Right Arrow to navigate between criteria operator and operands.