SnowConvert AI - IBM DB2 - From Clause¶
Description¶
The FROM clause specifies an intermediate result table
See the DB2 FROM clause documentation for this syntax.
Grammar Syntax¶

Table Reference¶
Description¶
A table-reference specifies an intermediate result table.
See the DB2 table reference documentation for this syntax.
Grammar Syntax¶

Navigate to the following pages to get more details about the translation spec for the subsections of the Table Reference grammar.
Analyze Table Expression¶
Description¶
Returns the result of executing a specific data mining model by using an in-database analytics provider, a named model implementation, and input data.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Analyze Table Expressions are not supported in Snowflake. The output query can be malformed
Grammar Syntax

Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-EWI-DB0019: ANALYZE TABLE FACTOR IS NOT SUPPORTED
Collection Derived Table
Description
A collection-derived-table can be used to convert the elements of an array into values of a column in separate rows. If WITH ORDINALITY is specified, an extra column of data type INTEGER is appended. This column contains the position of the element in the array.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Collection Derived Tables are not supported in Snowflake.
Grammar Syntax¶


Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-EWI-DB0016: UNNEST FUNCTION IS NOT SUPPORTED
Data Change Table Reference¶
Description¶
A data-change-table-reference clause specifies an intermediate result table. This table is based on the rows that are directly changed by the searched UPDATE, searched DELETE, or INSERT statement that is included in the clause.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Data Change Table Reference is not supported in Snowflake. The output query can be malformed.
Grammar Syntax

Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-EWI-DB0006: INTERMEDIATE RESULT TABLE IS NOT SUPPORTED.
External Table Reference
Description
An external table resides in a text-based, delimited or non-delimited file outside of a database. An external-table-reference specifies the name of the file that contains an external table.
Click here to navigate to the IBM DB2 documentation page for this syntax.
External Table Reference is not supported in Snowflake. The output query can be malformed.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-EWI-DB0014: THE USE OF EXTERNAL TABLE REFERENCES IS NOT SUPPORTED IN SNOWFLAKE
Nested Table Expression¶
Description¶
A fullselect in parentheses is called a nested table expression. The intermediate result table is the result of that fullselect.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
Nested Table Expression is partially applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
Unsupported cases¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-FDM-0027: REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE.
ONLY TABLE REFERENCE¶
Description¶
The use of ONLY(table-name) or ONLY(view-name) means that the rows of the applicable subtables or subviews are not included in the intermediate result table.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
OUTER TABLE REFERENCE¶
Description¶
The use of OUTER(table-name) or OUTER(view-name) represents a virtual table.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
OUTER TABLE REFERENCE is not applicable in Snowflake.
Grammar Syntax¶

Sample Source Patterns¶
IBM DB2¶
Snowflake¶
Related EWIs¶
SSC-EWI-DB0004: OUTER TABLE REFERENCE IS NOT SUPPORTED IN SNOWFLAKE.
Period Specification¶
A period-specification identifies an intermediate result table consisting of the rows of the referenced table where the period matches the specification. A period-specification can be specified following the name of a temporal table or the name of a view
Click here to navigate to the IBM DB2 documentation page for this syntax.
Period Specification is currently not supported by Snowflake.
Grammar Syntax

Sample Source Patterns
IBM DB2
Snowflake
Related EWIs
SSC-EWI-DB0003: PERIOD SPECIFICATION IS NOT SUPPORTED IN SNOWFLAKE.
Table Function Reference
Description
Table functions return columns of a table, resembling a table created through a simple CREATE TABLE statement. A table function can be used only in the FROM clause of a statement.
Click here to navigate to the IBM DB2 documentation page for this syntax.
Warning
Table Function Reference is not applicable in Snowflake.
Grammar Syntax¶


Sample Source Patterns¶
For the transformation of Table Function Reference, we must comment out the table-UDF-cardinality-clause. This clause is used for performance reasons, and is not relevant in Snowflake.
IBM DB2¶
Snowflake¶
Note that each function along with the type of its arguments specified in the table reference must exist, otherwise it will cause errors.