In the Query Name field, enter a name for your query.
Select an object in the left-hand pane and double-click it or drag it into the Result Objects pane.
Objects that appear in the Result Objects pane become fields that you report on in your Crystal report.
Repeat the previous step for each object that you want to include in the query.
Select an object in the left-hand pane, or in the Result Objects pane, and drag it into the Query Filters pane.
Add filters to the Query Filters pane to restrict the data your query returns based on the object that you selected. Filtering limits the data that a user can see and reduces the runtime of queries. For information about adding filters, see Creating query filters.
Click OK.
If your query contains prompts, select your prompt value(s) in the Enter Parameter Values dialog box.
For information about using the Enter Parameter Values dialog box, search for the dialog box by name in the Crystal Reports Online Help.
If your data source is secure, use the connection dialog box to log on to the database that your universe uses.
For information about using the supported connection dialog boxes, search for "Data source connectivity dialog boxes" in the Crystal Reports Online Help.
You can create a number of queries in the Query Panel that Crystal Reports combines through the use of a Union join.