17.10 - Example: CREATE Request That Produces a NoPI Table - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

This example creates a NoPI table named sales_temp1 regardless of the setting for PrimaryIndexDefault because you have specified NO PRIMARY INDEX explicitly:

     CREATE MULTISET TABLE sales_temp1, FALLBACK, NO BEFORE JOURNAL,
     NO AFTER JOURNAL, CHECKSUM = DEFAULT (
       item_nbr INTEGER NOT NULL,
       sale_date DATE FORMAT 'MM/DD/YYYY' NOT NULL,
       item_count INTEGER)
     NO PRIMARY INDEX;