FROM Clause | SQL SELECT Statements | Teradata Vantage - FROM Clause - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
vjt1596846980081.ditamap
dita:ditavalPath
vjt1596846980081.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™
Defines either of these items:
  • The set of base tables, global temporary tables, volatile tables, derived tables, views, or table functions that are referenced by the SELECT statement or query.
  • A correlation name for a base table, global temporary table, volatile table, derived table, or view for a self-join operation. See Self-Join.

In a FROM clause, a sequence of single table references creates an implicit inner join, instead of explicit joins where the keyword JOIN is part of the syntax.

For information about syntax that is compatible with temporal tables, see Teradata Vantage™ - ANSI Temporal Table Support, B035-1186 and Teradata Vantage™ - Temporal Table Support, B035-1182.

ANSI Compliance

The FROM clause is ANSI SQL:2011-compliant with extensions.

A FROM clause is mandatory for SELECT statements in the ANSI SQL:2011 standard. The optional FROM clause in Teradata SQL is a Teradata extension.

The ANSI SQL:2011 standard also requires that all of the columns referenced in an outer query be in tables that are specified in the FROM clause, but Teradata SQL does not.