Example: Data Type Attribute Not Carried Over to a View - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
tpf1598412463935.ditamap
dita:ditavalPath
tpf1598412463935.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantage™

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