Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Tearadata SQL Help - Very much Urgent - response (3) by reddy27

$
0
0
Mapping:   Source COLUMN Transformation TargetTable Field Tablename PRODUCT_1   t_prd SOR_PROD_CD Tablename PRODUCT_1 The value is  PROD_X_OTH_HIER_PROD.OTH_HIER_CHAR_PROD_CD where OTH_HIER_KY = 14 (OFFERATTR).  Get value of PROD_KY and join to PROD_DEF.PROD_KY.   Get value of PROD_DEF.PROD_CAT_LVL_1_KY and join to PROD_CAT_LVL_1_DEF on PROD_CAT_LVL_1_KY.  Get value of PROD_CAT_LVL_1_DEF.PROD_CAT_LVL_1_NM and populate target column PROD_CAT_LVL_1_NM with value.  If no value exists, set to NULL. t_prd PROD_CAT_LVL_1_NM Tablename PRODUCT_2 If value is NOT NULL AND if value <> PRODUCT_1, add new row repeating the Product mapping from above for column SOR_PROD_CD.  If value is NULL OR of value = PRODUCT_1, stop the loop.  There can be up to 5 products (PRODUCT_5). t_prd SOR_PROD_CD Tablename PRODUCT_2 Same as C2T_PROD_CAT_LVL_1_NM above t_prd PROD_CAT_LVL_1_NM  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>