Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1342

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using External Resources
For more information about using the Visual Query Builder, see
3
To try the query, click Execute query.
The first 50 records of the result set appear.
Using Visual Query Builder
You use the Query Builder to define a SQL statement. The following image shows the Query Builder user interface:
Build a SQL statement using the Table pane and the Properties panel
1
Expand a data source.
2
Double-click the columns to be named in the SELECT statement.
As you select columns, the Query Builder creates the SELECT statement in the area at the lower edge of the pane.
If you select columns from more than one table, you must specify the column or columns used to join them by
3
dragging a column from one table to the related column in the second table.
(Optional) Specify sort order by doing the following:
4
a
Locate the column in the Properties panel.
b
Click in the Sort Type cell of the column you want to sort by.
Specify Ascending or Descending.
c
(Optional) If you specify multiple sort columns, you specify precedence using the Sort Order cell.
d
5
(Optional) Specify selection criteria by doing the following:
Locate the column in the Properties panel.
a
Click in the Condition cell.
b
c
Select WHERE.
Specify WHERE clause criteria in the Criteria cell.
d
Note: If you specify selection criteria, the Query Builder creates a WHERE clause. To use an INNER JOIN or other
advanced selection criteria instead, you must code the SQL manually.
(Optional) To specify an aggregate function, GROUP BY, or an expression:
6
Locate the column in the Properties panel.
a
b
Click in the Condition cell.
Select Group By or the aggregate function (such as COUNT).
c
"Using Visual Query
Last updated 1/20/2012
Builder" on page 1337.
1337

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents