Grouping page of the SQL designer
The SQL designer Grouping page enables you to create a grouped query. A grouped query groups the data from the source tables and produces a single summary row for each row group.
To create a grouped query,
Select the field or fields you wish to group by from the Output Fields list box.
Click the Add button to move the field to the Grouped On list box. The query will be grouped based on fields that appear in the Grouped On list box.
To have a field appear in the Output Fields list box, select the field in the Table Pane.
To remove a field from the Grouped On list box, select the field and click the Remove button.