FROM clause
Description
The
FROM
clause in a query lists the table references (tables, views, and subqueries) that data is selected from. If multiple table references are listed, the tables must be joined, using appropriate syntax in either theFROM
clause or theWHERE
clause. If no join criteria are specified, the system processes the query as a cross-join. (Redshift SQL Language Reference FROM Clause)
The FROM clause is partially supported in Snowflake. Object unpivoting is not currently supported.
Grammar Syntax
Sample Source Patterns
Join types
Snowflake supports all types of joins. For more information, see the JOIN documentation.
Input Code:
Output Code:
Pivot Clause
Column aliases cannot be used in the IN clause of the PIVOT query in Snowflake.
Input Code:
Output Code:
Unpivot Clause
Column aliases cannot be used in the IN clause of the UNPIVOT query in Snowflake.
Input Code:
Output Code:
Related EWIs
SSC-EWI-RS0005: Column aliases cannot be used in the IN clause of the PIVOT/UNPIVOT query in Snowflake.
Last updated