Type of Computation

Teradata Vantage™ SQL Functions, Expressions, and Predicates

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K
To compute this type of function … Use this aggregation group …
Cumulative
  • ROWS UNBOUNDED PRECEDING
  • ROWS BETWEEN UNBOUNDED PRECEDING AND value PRECEDING
  • ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
  • ROWS BETWEEN UNBOUNDED PRECEDING AND value FOLLOWING
Group ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
Moving
  • ROWS value PRECEDING
  • ROWS CURRENT ROW
  • ROWS BETWEEN value PRECEDING AND value PRECEDING
  • ROWS BETWEEN value PRECEDING AND CURRENT ROW
  • ROWS BETWEEN value PRECEDING AND value FOLLOWING
  • ROWS BETWEEN CURRENT ROW AND CURRENT ROW
  • ROWS BETWEEN CURRENT ROW AND value FOLLOWING
  • ROWS BETWEEN value FOLLOWING AND value FOLLOWING
Remaining
  • ROWS BETWEEN value PRECEDING AND UNBOUNDED FOLLOWING
  • ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING
  • ROWS BETWEEN value FOLLOWING AND UNBOUNDED FOLLOWING