Creating a Query

You can use the procedure described in this section to create a query from either the New Query tab or the Query Editor. The query building tools are the same in both of these interfaces.

  1. Click the New Query button GUID-66F224A7-8FF4-41F5-AFAC-C7112EE5AFD2-low.png on the main toolbar. The New Query tab appears. Alternative: In the Query Browser, click the New Query button GUID-1DB0161B-C1F8-4D66-A7C7-6E4BBF1FD0C7-low.png. The Query Editor appears.
  2. Use the query builder to create new clauses for the query: GUID-62A7CFA2-B384-4AF8-B5D1-EE7076886876-low.png
  3. Click the Click here to add link. AccuWork displays a template for the clause. Use the list to choose the issue field you want to use to construct your first clause:

    GUID-DBB9D416-E897-4464-95DD-0AA1AFF05EF8-low.png

    Tip: Each time you click Click here to add, a new Click here to add link is added so that one is always available at each level of the query.
  4. Use the template to create the simple and compound clauses you want for your query. See Working with the Query Builder.
    Note: Simple clauses at the top level of the query use AND together by default. Meaning: an issue in the depot must satisfy all of the clauses you specify in order to be returned by the query.
  5. When the query is complete:
    • If you created the query in the New Query tab, click the Run button GUID-A7940750-0BCC-4218-B033-75E456BB6FE9-low.png. Results are displayed in the Results pane.
    • If you created the query in the Query Editor, click the Ok button to save your work. The query runs automatically and displays its results in the Query Browser.
  6. Review the query results. If necessary, modify the query and run it again. See Query List Pane to learn about sorting, filtering, and graphing query results.
  7. If you created the query in the New Query tab and want to use it in another session, click the Move to Queries button GUID-F866BE30-AC20-4793-BFB5-38E7A3528E6B-low.png.

    The query is moved to the Query Browser. It is selected by default.

  8. Click Save GUID-92FEE06B-CDBE-4080-915D-8A0489794819-low.png.