Example: Grouping Columns in the Column List of a Column-Partitioned Table Rather than in the Partitioning Expression - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

This example defines a column-partitioned table with two column partitions. The first column partition contains 2 columns (c1 and c2 ) and has system-determined COLUMN format with autocompression. The second column partition has 1 column (c3) and has system-determined COLUMN format with no autocompression.

     CREATE MULTISET TABLE cr (
       (c1 INTEGER, 
        c2 INTEGER), 
       (c3 VARCHAR(5000)) NO AUTO COMPRESS)
     NO PRIMARY INDEX
     PARTITION BY COLUMN;