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)
The Ancestor argument specifies that any node whose value ends with 'store' is an ancestor. The Nodes argument specifies that the function is to output the owner of each store and the title, author, and year of each node that starts with a string of lowercase alphabetic characters and ends with 'item'.
SELECT * FROM XMLParser (
  ON xml_inputs_fuzzy
  Text_Column ('xmlDocument')
  Nodes ('like(%store)/owner', 'regex([a-z]+item)/{title,author,year}')
  Ancestor ('like(%store)')
  Accumulate ('xid')
) ORDER BY 1,2;