CREATE JOIN INDEX SQL Statement | Teradata Vantage - CREATE JOIN INDEX - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

Creates a join index for one or multiple tables, optionally with aggregation.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

The ANSI SQL standard does not define DDL for creating indexes.

Other SQL dialects support similar non-ANSI standard statements with names such as the following:

  • CREATE MATERIALIZED VIEW

Required Privileges

You must have the following sets of privileges to create a join index:

  • CREATE TABLE on the database in which the join index is to be created.
  • DROP TABLE or INDEX on each of the covered tables or their containing databases.

Privileges Granted Automatically

Owners have implicit privileges on the join index. The following default privileges are granted automatically to the creator of a join index:

  • DROP TABLE
  • DUMP
  • INDEX
  • RESTORE
  • SELECT