This is an example of using prepared statements in JDBC data sources. The sample data source can be downloaded here (714 Bytes).
-
This example uses a simple fruit sales table:

-
The SQL query to be used:
SELECT * from FruitSales where (Company = "${Company1}" or Company = "${Company2}") -
Creating a prepared statement using the above query, declare the parameters as arguments:

-
Test the prepared statement:

-
The prepared statement returns the following results based on the selected parameter values:
