For the complete documentation index, see llms.txt. This page is also available as Markdown.

Read DB table

Read shipped orders from a database table using Table Input.

Workshop - Read DB table


Workshop files

Download the following files.

Keep the filenames unchanged.

Save them in your workshop folder.


Read from a database

Create a new transformation

Use any of these options to open a new transformation tab:

  • Select File > New > Transformation

  • Use Ctrl+N (Windows/Linux) or Cmd+N (macOS)


Table Input

Read rows from a database using a connection and SQL. In this workshop, filter to orders with STATUS = 'Shipped'.

  1. Start Spoon.

  1. Drag Table Input onto the canvas.

  2. Open the step properties.

  3. Configure the step to match your environment:

    • Select your database Connection

    • Use Get SQL select statement to generate a base query

    • Add a WHERE clause for shipped orders

Example filter:

Table input
  1. Select Preview. Confirm you get shipped orders.

  2. Select OK.

Troubleshooting

Preview shows zero rows Confirm the WHERE STATUS = 'Shipped' filter matches your source values.

SQL errors Select Get SQL select statement again. Then re-apply your WHERE clause.

Date or number conversion issues Fix types in Select values. Re-run the preview.

Out of memory during sort Lower the sort size in Sort rows, or increase JVM memory.

Last updated

Was this helpful?