Table of Contents

Search

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