Navigator > Setup > SQL Query Builder > Query Layout tab - OR -
Navigator > Setup > Report Designer > Edit Query (Alt+Q) button > Query Layout tab
See also SQL Query Builder.
Note: Some knowledge of SQL development is recommended for users of the SQL Query Builder.
Use the tools to build a query on the SQL tab. To build a query:
Note: Fields for each table are listed in the order of Join fields, followed by all other fields.
Grid Fields |
|||||||||||||||||||||
Column |
The name of the table and the field, separated by a ".". For example, ARCUST.CustomerCode. |
||||||||||||||||||||
Alias |
An alias that can be used to refer to the field. |
||||||||||||||||||||
Show |
Selected, the field will be visible in the query results. Unselected, the field will not be included in the query results. |
||||||||||||||||||||
Sort |
The sort order of the records. This determines the ORDERBY function on the SQL tab. To sort by a field, click in this line and select Ascending or Descending. Defaults to no sort order (blank). |
||||||||||||||||||||
Function |
You can apply a function to values in the field. If you specify a Function, you must specify a Group.
|
||||||||||||||||||||
Group |
Selected, this field will be grouped, using the Function (above). This determines the |
||||||||||||||||||||
Criteria |
Criteria for filtering records to returned by the query. This determines the The Query Builder will add all criteria in the Criteria column to the SQL WHERE Clause, with each entry joined with an |
||||||||||||||||||||
Or... |
Use these columns to enter any additional Criteria. The Query Builder builds the Criteria column, then builds each Or... each column separately. The SQL Where Clause built will contain:
Only use OR... columns if you have a complete separate set of criteria. If you want to apply an For example:
Would generate the following where statement:
Would generate the following where statement:
|
||||||||||||||||||||
Grid Toolbar |
|||||||||||||||||||||
|
Expand Toolbar |
Expand the toolbar to give access to all toolbar options. Press |
|||||||||||||||||||
|
Move |
Select a field name, click to order the list of fields. |
|||||||||||||||||||
|
Delete |
Remove the selected field from the query. |
|||||||||||||||||||
|
Customise |
Opens Customise Fields, you can customise the fields visible in the grid. |
|||||||||||||||||||