Select
ToolsRun QueryRun Immediate. A dialog box appears.
Select
AUTOGROUP in the dialog box to use
JOBCODES.TITLE as the Group By column. A second dialog box appears.
Select
Yes in the second dialog box to retain
the Group By column as part of the query.
The
Output window displays the number of employees for each job title.
In the
SQL
QUERY COLUMNS window, select
ToolsShow Query.
The automatic Group
By will be retained as part of the query syntax when the query is
run again, saved, or used to create a table or view. Select
Goback to return to the
SQL QUERY COLUMNS window.
In the
SQL
QUERY COLUMNS window, select
FileSave QuerySave
as QUERY to Include later.
In the
Entry
Name field, type
COUNTS
as the
name of the query. In the description field, type
Count
of EMPNO by TITLE
. Select
OK to save the query and return to the
SQL QUERY COLUMNS window.
Select
ViewTables to return to the
SQL QUERY TABLES window.
Remove
SALARY.JOBCODES from the Selected
Tables list. Select
OK in the dialog box
that appears.