Read DB table
Read shipped orders from a database table using Table Input.
Workshop - Read DB table
Build a transformation that reads ORDERS rows from a database.
Filter to shipped orders, calculate lead time, and label late shipments.
What you’ll do
Read rows with Table Input
Generate SQL with Get SQL select statement
Add a calculated field with Calculator
Bucket values with Number range
Sort and format output for review
Prerequisites
Pentaho Data Integration installed and configured
A working database connection. See Database Connections.
Basic
SELECTandWHERE
Estimated time: 20 minutes

Table Input
Read rows from a database using a connection and SQL.
In this workshop, filter to orders with STATUS = 'Shipped'.
Start Spoon.
Drag Table Input onto the canvas.
Open the step properties.
Configure the step to match your environment:
Select your database Connection
Use Get SQL select statement to generate a base query
Add a
WHEREclause for shipped orders

Select Preview. Confirm you get shipped orders.
Select OK.
Checkpoint: Preview shows only rows with STATUS = 'Shipped'.
Last updated
Was this helpful?




