7.00.02 - Rules for Table Aliases - 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)
  • An alias is required for a subselect or view.
  • An alias is optional for a base table. The default alias is the table name.
  • If the SQL-MapReduce function uses a table or view as input more than once, each input must have a different alias.
    For example:
    SELECT * FROM union_inputs (
      ON t AS t1 PARTITION BY ANY
      ON t AS t2 DIMENSION mode ('roundrobin')
    );
    Omitting the aliases causes an error:
    SELECT * FROM union_inputs (
      ON t PARTITION BY ANY
      ON t DIMENSION mode ('roundrobin')
    );
    ERROR:  input alias T in SQL-MR function UNION_INPUTS appears more than once