7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
SELECT * FROM WSRecommender (
  ON (SELECT * FROM WSRecommenderReduce (
    ON (SELECT * FROM recommender_product) AS item_table
      PARTITION BY product_category_a
    ON (SELECT * FROM recommender_user) AS user_table
      PARTITION BY product_category
    Item1 ('product_category_a')
    Item2 ('product_category_b')
    ItemSimilarity ('product_similarity')
    UserItem ('product_category')
    UserID ('companyname')
    UserPref ('prod_preference')
    )
  ) AS temp_input_table PARTITION BY usr, col1_item2
) ORDER BY recommendation desc, item;