SELECT Expression Can Include Data Definition Attributes - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
Product Category
Teradata Vantage™

When defining a non-updatable view, any expression in the SELECT expression list can include a data definition (Data Type, FORMAT attribute, TITLE attribute, and so on). Data definition attributes determine the form of the view display.

The data definition attributes for a view column can differ from those defined for the associated column of the underlying base tables or views. However, not all data definitions are relevant to view expressions.

For example, range constraints and DEFAULT declarations cannot be used in the expression list of a view definition. Instead, you should use the WHERE clause, or the HAVING clause if GROUP BY is specified, to define range constraints in a view definition.