When you specify data for a DataWindow object, SQL Select provides more options for specifying complex SQL statements when you use SQL Select rather than Quick Select.
When you choose SQL Select, you go to the SQL Select painter, where you can paint a SELECT statement that includes:
- More than one table
- Selection criteria (WHERE clause)
- Sorting criteria (ORDER BY clause)
- Grouping criteria (GROUP BY and HAVING clauses)
- Computed columns
- One or more arguments to be supplied at runtime
Note: In the SQL Select painter, you can save the current SELECT statement as a query by selecting from the menu bar. This lets you easily use this data specification again in other
DataWindows. See
Queries in PowerBuilder .NET and the
PowerBuilder Users Guide.