7.00.02 - WSRecommender Syntax - 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)
Version 1.0
SELECT * FROM (
  ON (SELECT * FROM WSRecommenderReduce (
    ON item_table AS item_table PARTITION BY item1_column 
    ON user_table AS user_table PARTITION BY item_column 
    [ Item1 ('item1_column') ]
    [ Item2 ('item2_column') ]
    [ ItemSimilarity ('similarity_column') ]
    [ UserItem ('item_column') ]
    [ UserID ('user_column') ]
    [ UserPref ('preference_column') ]
    [ AccumulateItem ({ 'accumulate_item_column' |
      'accumulate_item_column_range' }[,...]) ]
    [ AccumulateUser ({ 'accumulate_user_column' |
      'accumulate_user_column_range' }[,...]) ]
    )
  ) AS temporary_table PARTITION BY usr, col1_item2 
);