SQL Genie

Overview

The SQL Genie creates SQL SELECT statements using Portable SQL.

There are six tabs in the genie.

Tab

Purpose

Properties

Define GROUPBY clauses.

Define DISTINCT clauses.

Set record ranges.

Define Arguments.

Tables

Select one or more tables.

Define JOIN relationships between tables.

Columns

Select fields from one or more tables.

Filter

Define WHERE clauses that filter the records that you will retrieve.

Order

Sequence the records that you will retrieve.

Having

Define HAVING clauses that filter the records that you will retrieve only when using a GROUP BY clause.

Starting the SQL Genie

You can display the SQL Genie in the following ways:

SQL History

The SQL History dialog displays a list of the SQL SELECT statements that you have created. as such, it represents a list of snapshots since you began defining the query for the current report.

To return to a previous version of the SQL SELECT statement, pick it from the list and click Select.

Native Syntax

The Native Syntax button displays the SQL Native Syntax dialog box. This dialog displays both the Portable SQL that has been generated by the SQL Genie and the native SQL version supported by any of these database products. The Copy to Clipboard button allows you to copy the native SQL for reuse in another context.

See Also

Enterprise Reporting

Supported By

Alpha Five Version 7 and Above (Requires Enterprise Reporting License)