16.20 - Example: Creating a Join Index for a Table with JSON Columns - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

The table definition for this example includes two JSON columns, jsn1 and jsn2. The jsn1 column is non-LOB and jsn2 in an LOB column.

CREATE TABLE jsonTable (id INTEGER,
                jsn1 JSON(1000) CHARACTER SET LATIN,
                jsn2 JSON(1M) INLINE LENGTH 30000 CHARACTER SET LATIN);

The join index includes the id column and the jsn1 column.

CREATE JOIN INDEX jsonJI AS SELECT id, jsn1 FROM jsonTable;