Example: Data Type Attribute Not Carried Over to a View

Teradata Vantage™ Data Types and Literals

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1143-162K

In this example, the vtb3 view is created from table tb in example 1. The title “This is the title” defined in table tb is not carried over to the view because column b is an expression in the SELECT list of the view definition.

CREATE VIEW vtb3 AS
(SELECT a, b (SMALLINT)
 FROM tb);

SELECT TITLE(vtb3.b);

The SELECT statement produces the following output:

Title(b)
-----------
b