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. Data Services transformation
  9. Deduplicate transformation
  10. Expression transformation
  11. Filter transformation
  12. Hierarchy Builder transformation
  13. Hierarchy Parser transformation
  14. Hierarchy Processor transformation
  15. Input transformation
  16. Java transformation
  17. Java transformation API reference
  18. Joiner transformation
  19. Labeler transformation
  20. Lookup transformation
  21. Machine Learning transformation
  22. Mapplet transformation
  23. Normalizer transformation
  24. Output transformation
  25. Parse transformation
  26. Python transformation
  27. Rank transformation
  28. Router transformation
  29. Rule Specification transformation
  30. Sequence Generator transformation
  31. Sorter transformation
  32. SQL transformation
  33. Structure Parser transformation
  34. Transaction Control transformation
  35. Union transformation
  36. Velocity transformation
  37. Verifier transformation
  38. 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.

0 COMMENTS

We’d like to hear from you!