22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

4. (Optional) Specify sort order by doing the following:<br />

a. Locate the column in the Properties panel.<br />

b. Click in the Sort Type cell of the column you want to sort by.<br />

c. Specify Ascending or Descending.<br />

d. (Optional) If you specify multiple sort columns, you specify precedence using the Sort<br />

Order cell.<br />

5. (Optional) Specify selection criteria by doing the following:<br />

a. Locate the column in the Properties panel.<br />

b. Click in the Condition cell.<br />

c. Select WHERE.<br />

d. Specify WHERE clause criteria in the Criteria cell.<br />

6. (Optional) To specify an aggregate function, GROUP BY, or an expression:<br />

a. Locate the column in the Properties panel.<br />

b. Click in the Condition cell.<br />

c. Select Group By or the aggregate function (such as COUNT).<br />

7. (Optional) To specify SQL manually, type the SQL statement in the SQL pane.<br />

NOTE<br />

NOTE<br />

If you specify selection criteria, the Query Builder creates a WHERE clause. To<br />

use an INNER JOIN or other advanced selection criteria instead, you must code<br />

the SQL manually.<br />

You code SQL manually to use an INNER JOIN instead of a WHERE clause, use an<br />

OUTER JOIN, or use a database stored procedure.<br />

8. (Optional) To specify the data type of a query parameter:<br />

a. Click the + button under Parameters.<br />

b. Enter the name of the parameter.<br />

c. Select the data type.<br />

9. Review the SELECT statement that displays in the SQL pane, and use the Table and<br />

Properties panes to make adjustments, if necessary.<br />

10. (Optional) Click Test Query.<br />

11. Click Save.<br />

1626 Using the <strong>ColdFusion</strong> Extensions for Eclipse

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!