|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |
In the JDBC Query activity, you must first specify a JDBC Connection shared configuration resource to connect to a database. Once the database connection is specified in the JDBC Query activity, you can click the Build Using Wizard button to create a query using the Query Designer wizard. Figure 18 illustrates the Query Designer.Figure 18 The Query Designer wizard
− For the TOTAL column, click in the Total field and select Sum from the list. The other columns are automatically updated to select the Group By value required for this function.
− For the CUSTOMER_ID column, click the Show check box to clear it. This column is necessary for the query, but can be hidden in the output.Clicking the SQL tab to view the syntax shows the SUM function and GROUP BY clause has been added to the SQL:
3. To check the SQL syntax, click the Check Syntax button.
4.
|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |