Comments in Queries - Teradata Vantage

Teradata Vantageā„¢ User Guide

Product
Teradata Vantage
Release Number
1.1
Published
May 2020
Language
English (United States)
Last Update
2020-05-28
dita:mapPath
ioz1543440393126.ditamap
dita:ditavalPath
jsj1481748799576.ditaval
dita:id
B700-4002
lifecycle
previous
Product Category
Teradata Vantage

Queries with "@coprocessor"

Comments in queries with "@coprocessor" must have the syntax /* comment */. For example:

SELECT * FROM GLMPredict@coprocessor (
  ON admissions_test PARTITION BY ANY
  ON glm_admissions_model AS model DIMENSION
  USING
  Accumulate ('id', 'masters', 'gpa', 'stats', 'programming', 'admitted')
  Family ('LOGISTIC')     /* Same as BINOMIAL */
  LinkFunction ('LOGIT')  /* Default */
) AS dt;

Queries without "@coprocessor"

Comments in queries without "@coprocessor" can have either the preceding syntax or the syntax -- comment . For example:
SELECT * FROM GLMPredict (
  ON admissions_test PARTITION BY ANY
  ON glm_admissions_model AS model DIMENSION
  USING
  Accumulate ('id', 'masters', 'gpa', 'stats', 'programming', 'admitted')
  Family ('LOGISTIC')     /* Same as BINOMIAL */
  LinkFunction ('LOGIT')  -- Default
) AS dt;