Creating a Query using Query Wizard
|
1. |
If a completely new Report is being created, enter the header detail for the report. (See 'Report Builder Maintenance - Adding a new Report). |
|
|
|
|
2. |
From the main Report Maintenance Form, select |
|
|
|
|
|
|
The following message will be given:
|
|
|
3. |
Select
|
|
|
|
|
|
|
|
|
|
|
4. |
Highlight 'Query Wizard' and select |
|
|
|
|
|
|
|
The Query Wizard 'Tables' screen will be given:
A list of all available Tables is offered for selection. These tables hold all those fields available for inclusion in the report e.g. the 'Forms' table holds a list of many of those fields held in an individual Form record.
|
|
|
5. |
Select the first Table required by highlighting the applicable 'Available
Table' and selecting |
|
|
|
|
|
|
|
|
|
|
|
The selected table will be displayed on the right hand side of the screen under 'Selected'. All 'linked' tables which have not yet been selected will then be displayed in bold text on the left hand side of the screen. In the Example below, 'Forms' has been selected. Those linked Tables which are now available for selection are 'Current Pupils', 'Current Pupils All Years', 'Form Years', 'Past Pupils', 'Prospective Pupils' and 'Staff'.
|
|
|
|
If 'Current Pupils' is now selected, a list of all (available) Tables linked to the 'Current Pupil' table will be available for selection, and so on.
Note:
To de-select a currently selected Table, highlight the applicable 'selected
table' and click the mouse on
|
|
|
6. |
When all required tables have been selected, click on |
|
|
|
|
|
|
|
The Query Wizard 'Fields' screen is given:
|
|
|
|
The 'Fields' screen is used to determine which of those Fields contained within the Tables on the previous screen are to be included in the Report Query. See Tables and Fields for further information on Tables and those Fields contained within them. |
|
|
7. |
Select one of the following by use of the applicable 'radio button'.
|
|
|
|
|
|
|
All Fields |
If all fields in the tables selected on the previous screen are to be available for inclusion in the Report. Note: if 'All fields' is selected at this point, the actual fields for inclusion may be selected at a later stage in the report creation.
|
|
|
|
Choose |
If the number of fields to be available for inclusion in the report is to be reduced at this stage. If 'Choose Fields' is selected, a list of those fields contained in the tables selected on the 'Tables' screen will be offered:
Select all those fields required by highlighting the available fields
(on the left hand side of the screen) as applicable and clicking on
To
de-select a field already selected, highlight the applicable 'selected
field' and click on |
|
8. |
Select |
|
|
|
|
|
The Query Wizard 'Calculations' screen will be offered.
|
|
9. |
Pass through this Calculations screen by selection of
Note: if any calculations are to be included in the report, it is advised that they are entered on the Report Layout screen - see 'Editing the layout of a Report' |
|
|
The Query Wizard 'Grouping' screen is given:
|
|
10. |
Again, pass through this Groupings screen by selection
of Note: if any groupings are to be entered, it is advised that they are entered on the Report Layout screen - see 'Editing the layout of a Report' |
|
|
The Query Wizard 'Search' screen will be displayed:
|
|
11. |
Select one of the following by use of the applicable 'radio button'.
|
|
|
All Rows |
If all the data contained in all selected 'Fields' for all selected 'Tables' for all records is to be included in the report. Note: Search Criteria may be entered later if required. Go to 12. below.
|
|
|
Define Search Criteria |
If the data included in the report is to be reduced by use of Search criteria. E.g. to include data for first year Forms only, for one pupil only or all Years except Year one.
See 'Search' for further detail on adding Searches to a Query.
|
|
12. |
Select
|
|
|
|
|
|
|
|
|
Select one of the following by use of the applicable 'radio button'.
|
|
|
Natural Order |
If data in the report is to appear in its natural order. If this option is selected, the data contained within the report may be in no particular order. Go to 13. below.
|
|
|
Set Order |
To set the order that the data is to appear in the report.
The order in which the Fields are to be used
is determined by the order in which they are listed in the screen. These
fields may be moved into the required order by use of the By default each selected field will be printed
in ascending See 'Order' for further detail on amending the Report Order. |
|
13. |
Select |
|
|
|
|
|
|
|
|
Enter the information as follows: |
|
|
Name |
Enter a description for the Query. This description will be used in the header of the report i.e. as the report title (if Query Wizard is used to define the layout of the report - see 'Report Layout' below) |
|
14. |
Select one of the following radio buttons |
||||||
|
|
|
||||||
|
15. |
When the above selection has been made, select
|
||||||
|
|
If 'Preview the query' has been selected, then a preview of the report will be displayed.
|
|
16. |
Select |
|
|
|
|
|
Now that the data content for the query has now been determined, the layout of the report must be defined.
|
|
|
The following message will be given:
|
|
17. |
Select
|
|
|
|
|
18. |
When 'Yes' has been selected to the above message, the first of the Query Wizard report layout screens will be displayed. This screen is the Report Layout 'Fields' screen.
|
|
|
|
|
|
|
|
This screen is used to select which fields are to be included on the final report.
|
|
|
|
The list of Available fields offered is the list of fields as selected on the 'Query Wizard Fields' screen.
|
|
|
19. |
Select those fields which are to be included in the report as follows: |
|
|
|
|
|
|
|
Highlight the required 'Available Fields' and select To de-select
fields already selected highlight an individual field to be de-selected
and click the mouse on The 'Order' options
|
|
|
20. |
When all required fields have been selected (and are now listed under
'Selected Fields', click the mouse on
|
|
|
|
|
|
|
|
This screen is used for grouping information. Select the main Groups field by highlighting
the field (under 'Available Fields' and then clicking the mouse on the
|
|
|
|
|
|
|
21. |
When all required Groups have been selected, click on
|
|
|
|
|
|
|
|
The layout/orientation screen is used to select the report layout and paper orientation. The actual layout/orientation screen displayed will depend on whether Groups have been selected on the previous (Groups) screen.
|
|
|
(a) |
If groups have been selected, the following Orientation screen will be given:
|
|
|
(b) |
If Groups have not been selected on the Groups screen, the following screen will be given:
|
|
|
Select the required layout and orientation for the report by use of the radio buttons (click the mouse on each of the listed radio buttons to see a preview). |
|
|
22. |
When the Orientation/Layout screen is completed, click on |
|
|
|
|
|
|
23. |
Select the required 'style' for the report. (Click the mouse on each of the listed options to see a preview).
|
|
|
|
|
|
|
24. |
When the required style has been selected, click on |
|
|
|
|
|
|
25. |
Select one of the following radio buttons: |
|
|
|
|
|
|
|
Or,
|
|
|
26. |
Click on |
|
|
|
|
|
|
|
If 'Preview the report' has been selected, then a preview of the report will be displayed.
If 'Modify the report's design' has been selected, then the following screen will be given:
This is the Query Designer. The content of the Query may now be modified as required. (See 'Editing an existing report').
|
|
|
27. |
Select |
|
|
|
|
|
|
|
The Report Maintenance Form will be re-displayed.
|
|
|
28. |
The report query and layout creation are now complete. Select to preview/print or edit the report as required.
|