Creating and running queries
Create queries to retrieve records in a user database.
You can create a query for any record type that is defined in Rational®
ClearQuest® Web.
About this task
Creating the query involves several steps: selecting the record type, adding the filters and defining their properties, moving and grouping filters, formatting the results set, and saving and running the query.
Selecting the record type
Procedure
- On the Rational ClearQuest Web toolbar, click New Query.
- On the Create New Query window, select a record type from the list. Only records of this record type are selected when the query runs.
- Optional: To use the design of an existing query as the basis for the new query, on the same Create New Query window select the Copy the design from an existing query check box and select a query from the list.
- Select a record type and click OK. The New Query is opened as a new tab on the page. Type a query name. There are several panes with information for fields, filters, and the presentation layout for the query. If you selected an existing query in step 3, its filters and presentation layout are added to the new query. You can change these by following the instructions in Adding filters and defining their properties.
What to do next
Adding filters and defining their properties
Procedure
Moving filters
Procedure
- Select the filter, right-click to display the pop-up menu and click Cut or Copy to either remove it from the current location or copy it to a new location.
- Select the new location, right-click to display the pop-up menu and click Paste to move it to the new location.
Grouping filters
About this task
Procedure
- At the top of the Filters pane, click AND or OR.
- In the Fields pane, click the right arrow to add fields under the AND or OR groups in the Filters pane.
- You can add logical operators only as the root or children of another operator.
What to do next
Note: You can change or delete the existing operator within
the Filter pane. Select the operator, right-click to display the pop-up
menu and click the operator or Delete to remove
it.