Looking for values in a database table
In order to search for data in a database, Kettle offers several ways of accessing the data. The simplest situation is the one in which you need to get one or more columns from a single database table. In this recipe, you will learn how to do this by using the Database lookup step. We will work with the Steel Wheels sample data. If you wish to become more familiar with the sample dataset or need to learn how to configure database access, refer to Chapter 1, Working with Databases. Suppose that you want to look for products that match a given search term, and whose prices are below a given value, this recipe shows you how to do this.
Getting ready
In order to follow this recipe, you need the Steel Wheels database.
How to do it...
Perform the following steps:
Create a new transformation.
Bring over a Data Grid step from the Input category. Open the step. Under the Meta tab, add two string items
prod
andmax_price
. Then, complete the Data tab, as shown in the...