Example: Three-Dimensional ARRAY Type Using Different Syntax - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

These examples create the same 3-dimensional ARRAY type as Example: Three-Dimensional ARRAY Type, but use different syntax variations to define them.

The first example uses Teradata-style syntax to define a variant of the seismic_cube type, seismic_cube_2, based on the type measures_udt, which is defined in Example: Three-Dimensional ARRAY Type.

     CREATE TYPE seismic_cube_2 AS 
     measures_udt ARRAY [5][7][20];

The next example uses another variant of Teradata-style syntax to define an equivalent seismic_cube type named seismic_cube_3.

     CREATE TYPE seismic_cube_3 AS 
     measures_udt ARRAY [1:5][7][1:20];