The first query you will create will be an Employee Original Hire Date List that retrieves the following information: employee first name, employee last name, original hire date, benefit description, and
employee premium. This example shows you how to group the Employee Original Hire Date List by the benefit plan description, sort the information in
ascending order and add subtotals to each group and a grand total to the
query. The query will be output as a Report (Landscape Layout).
- Select Reports > Employees or Training > Secure Query. The Query List Manager dialog box opens and
lists previously saved queries.
- Click New. The Enter a Title for this New Query dialog box opens.
- In the New Title field,
enter Employee Original Hire Date. This field is required because the query name appears at the top of pages and prints on most reports.
- Select an Access Type of Private (personal use only).
- Click OK. The Select Data To Use in Query dialog box opens.
- From the Choose Employee Information tab, select Demographics and HR Status.
- From the Choose Additional Information tab, select All Benefits.
- Click OK. The Select Fields to Show in Query dialog box opens. The Fields to pick from list depends upon the tables you have selected from the Select Data To Use in Query dialog box. The Fields to include in query list shows those fields you select.
- From the Fields to pick from list box, double-click or press the Ctrl key to select :
- First Name
- Last Name
- Original Hire Date
- Benefit Description
- Employee Premium
The selected fields appear in the right list box in the order in which you selected them. This is the order in which Sage HRMS displays the fields in your query. To remove a field from the Fields to include in query list, highlight it and click Remove or double-click it.
- To change the order of the fields, move your cursor over the button to the left of the field until you see a two-headed arrow.
- Press your left mouse button and drag the field to the new position.
- Release the mouse button.
- The field moves to the new position and the other fields automatically reorder to accommodate the moved field.
- Click OK. The Query Main page opens.
- From the Output Results
tab, select Report (Landscape Layout).
- From the Group Records
tab, select Benefit Description at the Group records first by this field drop-down list.
- Clear the Count the number of records in the group check box.
- Select the Show Detail records in the group check box.
- From the Summarize the
records for this numeric field list, select Employee Premium and click once to highlight it.
- Select the Sum the records
in this field radio button.
- From the Sort Records
tab, click the Select Order button. The Select Sorting Order dialog box opens.
- From the Fields to pick from list, double-click Benefit Description and Last Name. Both fields automatically default to ascending order.
- Click OK.
- Click Run Query.
- Because you selected Report (Landscape Layout) as the output, the Report Setup dialog box opens.
- Select Preview.
- Click Start Report. The Report Preview window opens and displays the report.