16.10 - Example: Data Type Attribute Not Carried Over to a View - Teradata Database

Teradata Database SQL Data Types and Literals

prodname
Teradata Database
vrm_release
16.10
created_date
June 2017
category
Programming Reference
featnum
B035-1143-161K

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