Time for action – getting orders in a range of dates by using variables
In this tutorial you will do the same as you did in the previous tutorial, but another method will be explained to you.
- Open the main transformation we created in the Time for action–getting data about shipped orders section and save it under a new name.
- Double-click the Table input step.
- Modify the
SELECT
statement as follows:SELECT ORDERNUMBER , ORDERDATE , REQUIREDDATE , SHIPPEDDATE FROM ORDERS WHERE STATUS = 'Shipped' AND ORDERDATE BETWEEN '${DATE_FROM}' AND '${DATE_TO}'
- Tick the Replace variables in script? checkbox.
- Save the transformation.
- With the Select values step selected, click the Preview button.
- Click on Configure.
- Fill the Variables grid in the settings dialog window—type ...
Get Pentaho 3.2 Data Integration Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.