CREATE FOREIGN TABLE SQL Statement | Teradata Vantage - CREATE FOREIGN TABLE - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Foreign tables enable Vantage to access data in external object storage, such as semi-structured and unstructured data in Amazon S3, Azure Blob storage, and Google Cloud Storage. In-database integration of this data allows data scientists and analysts to read and process this data with Vantage, using standard SQL. You can join external data to relational data in Vantage, and process it using built-in Vantage analytics and functions.

The external data can be in various standard data formats, such as JSON, CSV, and Parquet.

Creating a foreign table involves specifying the location of the data, authentication information required for access to the external storage system, and other information that allows Vantage to identify the data of interest and properly place the data into rows and columns of a Vantage table. See also Accessing External Data in Teradata Vantage™ - SQL Data Manipulation Language, B035-1146.

Required Privileges

You must have the CREATE TABLE privilege on the database or user in which the table is created.

Privileges Granted Automatically

The creator receives the following privileges WITH GRANT OPTION on the newly created table:
  • DROP TABLE
  • SELECT
For more information about database privileges, see Teradata Vantage™ - SQL Data Control Language, B035-1149.