Rules for Table Aliases - Aster Analytics

Teradata Aster Analytics Foundation User Guide

Product
Aster Analytics
Release Number
6.21
Published
November 2016
Language
English (United States)
Last Update
2018-04-14
dita:mapPath
kiu1466024880662.ditamap
dita:ditavalPath
AA-notempfilter_pdf_output.ditaval
dita:id
B700-1021
lifecycle
previous
Product Category
Software
  • 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