Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Deduplicate transformation
  9. Expression transformation
  10. Filter transformation
  11. Hierarchy Builder transformation
  12. Hierarchy Parser transformation
  13. Hierarchy Processor transformation
  14. Input transformation
  15. Java transformation
  16. Java transformation API reference
  17. Joiner transformation
  18. Labeler transformation
  19. Lookup transformation
  20. Mapplet transformation
  21. Normalizer transformation
  22. Output transformation
  23. Parse transformation
  24. Python transformation
  25. Rank transformation
  26. Router transformation
  27. Rule Specification transformation
  28. Sequence Generator transformation
  29. Sorter transformation
  30. SQL transformation
  31. Structure Parser transformation
  32. Transaction Control transformation
  33. Union transformation
  34. Velocity transformation
  35. Verifier transformation
  36. Web Services transformation

Transformations

Transformations

Entering a query

Entering a query

You can configure the SQL transformation to process a user-entered query on the
SQL
tab of the SQL transformation. Optionally, you can parameterize the query. When you parameterize the query, you enter the full query in the mapping task.
  1. In the
    Properties
    panel of the SQL transformation, click the
    SQL
    tab.
  2. Select the connection to the database or use a parameter.
  3. Set the SQL type to
    SQL Query
    .
  4. Set the query type to
    Entered Query
    .
  5. If you do not want to parameterize the query, enter the query in the query editor.
    Incoming fields are listed on the
    Fields
    tab. To add a field to the query, select the field and click
    Add
    .
    You can format the SQL and validate the syntax.
    The syntax validation performs a general SQL syntax check but does not verify the SQL against the database. The validation can return a syntax error even though the SQL is valid for the database. In this case, you can still save and run the mapping.
    If you update the incoming fields after you configure the query, open the
    SQL
    tab to refresh the changes.
  6. If you want to parameterize the query, perform the following steps:
    1. Open the
      Parameters
      tab and create a new string parameter.
    2. Select the parameter, and then click
      Add
      to add the parameter to the query editor.
      When you add the parameter to the query editor,
      Data Integration
      encloses it in dollar sign characters (
      $
      ).
      Do not format the SQL or validate the query.