Table of Contents

Search

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