Query Results
About Query Results
The following topics describe available actions related to query results.
Access the Results Workspace
Procedure
Sort the Query Results
Before You Begin
When defining sort criteria for a query, note that:
- The sort criteria determines the default sort order for query results. After the results are displayed, users can modify the sort order in the results grid.
- If no sort criteria has been defined, the query results will not be sorted in any particular order by default. Users can still modify the sort order in the results grid.
- Any sort criteria that is defined for numeric columns in a query will be applied to stored values (vs. displayed values) regardless of whether the query is running in formatted or unformatted mode.
- Unlike the sorting that you can apply directly to the results, sorting preferences that you define in the Design workspace are stored with the query itself and are applied each time you run the query.
For example, according to the following image, the Asset Installation Date will be sorted in Ascending order:
These sort options will affect the query results, as shown in the following image:
Note: The sort order that you specify within the query definition will be saved as the default layout for the results.
About This Task
Procedure
Sort Column Values in the Results Workspace
About This Task
Note: These settings are not saved when you access the Results workspace again.
Procedure
Group by Column Values in the Results Workspace
About This Task
Note: These settings are not saved when you access the Results workspace again.
Procedure
Filter the Query Results
About This Task
Note: These settings are not saved when you access the Results workspace again.
Procedure
Export a Query Result Set to a File
About This Task
Therefore, long running queries should be exported in the background.
Note: When running the query during export, you can specify the page size to be used by the query engine.
Procedure
Export a Query Result Set to a Dataset
About This Task
A query can be exported as a dataset, a fixed set of information that is stored as a Catalog item.
Note: When you run a query in unformatted mode, the results will still display formatted date values. Date values will always be displayed in the local time for the user; however, if you export the unformatted query result set to a file or dataset, the exported date values will be unformatted.
Procedure
Modify the Value in the Field Cell
Procedure
Remove the Limit on the Number of Results
Procedure
Modify the Output Mode of a Select Query
Procedure
Display Unique Records Only
Procedure
Limit the Number of Results
Procedure
Aggregate Query Results
Before You Begin
Procedure
Show the Units of Measurement
Procedure
Create a Hyperlink
Procedure
- To create an internal URL:
- To create an external URL:
Results
Note: If you clear the Included check box for the System field, and then run the query in formatted mode, selecting a hyperlink in the query results may cause the following error message to appear: An entity with the key '{<X>}' could not be found. Please close the tab. If this occurs, select the Included check box for the System field, and then rerun the query.
- You cannot modify a hyperlink using the URL Builder window. The URL Builder interface does not store settings for existing hyperlinks.
- If you want to use the URL Builder window to modify a hyperlink, you can recreate the hyperlink and include your modifications in the URL Builder window.