Example: Data Type Attribute Not Carried over to a View - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

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