Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Custom Transformation
  5. Custom Transformation Functions
  6. Data Masking Transformation
  7. Data Masking Examples
  8. Expression Transformation
  9. External Procedure Transformation
  10. Filter Transformation
  11. HTTP Transformation
  12. Identity Resolution Transformation
  13. Java Transformation
  14. Java Transformation API Reference
  15. Java Expressions
  16. Java Transformation Example
  17. Joiner Transformation
  18. Lookup Transformation
  19. Lookup Caches
  20. Dynamic Lookup Cache
  21. Normalizer Transformation
  22. Rank Transformation
  23. Router Transformation
  24. Sequence Generator Transformation
  25. Sorter Transformation
  26. Source Qualifier Transformation
  27. SQL Transformation
  28. Using the SQL Transformation in a Mapping
  29. Stored Procedure Transformation
  30. Transaction Control Transformation
  31. Union Transformation
  32. Unstructured Data Transformation
  33. Update Strategy Transformation
  34. XML Transformations

Transformation Guide

Transformation Guide

Creating the Database Table

Creating the Database Table

The SQL transformation writes product prices to the Prod_Cost relational table. The Prod_Cost table contains unit and package prices for each product. It stores the wholesale, retail, and manufacturing prices by unit and package.
You do not create a relational target definition for the Prod_Cost table in the repository. The SQL transformation generates the SQL statements to update the table in the database.
The Prod_Cost table contains the following columns:
Type of Costs
Datatype
Description
ProductID
varchar
A unique number that identifies the product to update.
WUnitPrice
number
Wholesale unit price.
WPkgPrice
number
Wholesale package price.
RUnitPrice
number
Retail unit price.
RPkgPrice
number
Retail package price.
MUnitPrice
number
Manufacturers unit price.
MPkgPrice
number
Manufacturers package price.
The following SQL statements create the Prod_Cost table and three product rows on an Oracle database:
Create table Prod_Cost (ProductId varchar (10), WUnitPrice number, WPkgPrice number, RUnitPrice number, RPkgPrice number,MUnitPrice number, MPkgPrice number ); insert into Prod_Cost values('100',0,0,0,0,0,0); insert into Prod_Cost values('200',0,0,0,0,0,0); insert into Prod_Cost values('300',0,0,0,0,0,0); commit;

0 COMMENTS

We’d like to hear from you!