Query Tab, Properties Window (Query Designer)

      

Contains options for controlling the behavior of the query you are building or modifying.

Options

Query name

Displays the name for the current query. You cannot change the query name in this box. To assign a new name, use the Save As command from the File menu.

Output all columns

Specifies that all columns from all tables in the current query will be in the result set. Choosing this option is equivalent to specifying an asterisk (*) in place of individual column names.

DISTINCT values

Specifies that the query will filter out duplicates in the result set. This option is useful when you are using only some of the columns from a table and those columns might contain duplicate values, or when the process of joining two or more tables produces duplicate rows in the result set. Choosing this option is equivalent to inserting the word DISTINCT into the statement in the SQL pane.

Destination table

Specifies the name of the table into which you are inserting rows. This list appears if you are creating an Insert query or Make Table query. For an Insert query, select a table name from the list.

For a Make Table query, type the name of the table to create. The Query Designer does not check whether the name is already in use or whether you have permission to create the table. To create a destination table in another database, specify a fully qualified table name, including the name of the target database, the owner (if required), and the name of the table.

GROUP BY extension

Specifies that additional options for views based on aggregate queries are available. These options are available only for Microsoft® SQL Server™.

WITH CUBE

(Microsoft SQL Server only.) Specifies that the aggregate query should produce summary values for groups specified in the GROUP BY clause. The groups are created by cross-referencing columns included in the GROUP BY clause, and then applying the query's aggregate function to produce summary values for the additional super-aggregate rows. The With CUBE option is multidimensional, creating summaries from all combinations of aggregate functions and columns in the query.

WITH ROLLUP

(Microsoft SQL Server only.) Specifies that the aggregate query should produce summary values for the groups specified in the GROUP BY clause. The With ROLLUP option is similar to the With CUBE option, but creates only one type of summary for each combination of column and aggregate function.

ALL

(Microsoft SQL Server only.) Specifies that the aggregate query will include any duplicate rows in the summary.