Show TOC

 Inserting a Copy of a Query in Another Query

Use

If you insert a copy of another query into the current query, all query steps in the other query appear in the current query and you can edit them there. No continuing reference to the original query you copied exists, meaning that if you change the original query, the changes are not included in the query that contains the copy.

Note Note

If you want to retain this reference, you must insert a reference to another query .

End of the note.

Prerequisites

The Edit Query: Step Overview screen is displayed. For more information about how to get to this screen and for other prerequisites, see Creating and Editing Queries .

Procedure

  1. Position the cursor on one of the following:

    • If you want to insert the copy of the other query at a specific position in the current query, position the cursor on the query step after the required position in the current query.

    • If you want to insert the copy of the other query as the last step in the current query or if the current query does not yet contain any query steps, position the cursor on the root of the tree structure of the current query.

  2. Choose with the quick info text Copy Query .

    The group overview for the queries then appears.

  3. Double-click the query you want to insert as a copy in the current query.

    The query steps of the copied query are inserted in the current query under a new query step. The new query step is assigned the key of the copied query.

  4. Save the query.