display-medicalRead DB table

Read shipped orders from a database table using Table Input.

circle-exclamation

Workshop - Read DB table


circle-info

Workshop files

Download the following files.

Keep the filenames unchanged.

Save them in your workshop folder.


Read from a database
circle-info

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)


circle-info

Table Input

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

  1. Start Spoon.

circle-info
  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

circle-info

Example filter:

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

  2. Select OK.

circle-check
chevron-rightTroubleshootinghashtag

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?