29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The values we enter during the wizard are:<br />

Type of expression: Constant<br />

Type of constant expression: String constant<br />

String constant type: Host variable name<br />

Variable name: item_desc<br />

At the end of the wizard, click Finish and you will be returned to the<br />

Conditions tab to complete the selection conditions.<br />

– And/Or: Leave this blank since there is only one condition for the search.<br />

12.Click the Order tab. We want to list the items in order by using the price.<br />

Select Price and move it to the Selected Columns window. Ascending order<br />

will be the default but you can change this by clicking under the Sort Order<br />

column and selecting DESC (descending).<br />

Figure 6-23 Order the columns<br />

13.Click Next. The SQL Statement page now displays the generated SQL<br />

statement and gives you a chance to modify it.<br />

Chapter 6. Accessing databases 183

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

Saved successfully!

Ooh no, something went wrong!