INLINE TABLE-VALUED
Translation reference to convert Transact-SQL UDF (User Defined Functions) with TABLE return type to Snowflake.
Description
Transact Syntax
-- Transact-SQL Inline Table-Valued Function Syntax
CREATE [ OR ALTER ] FUNCTION [ schema_name. ] function_name
( [ { @parameter_name [ AS ] [ type_schema_name. ] parameter_data_type
[ = default ] [ READONLY ] }
[ ,...n ]
]
)
RETURNS TABLE
[ WITH <function_option> [ ,...n ] ]
[ AS ]
RETURN [ ( ] select_stmt [ ) ]
[ ; ]Snowflake SQL Syntax
Sample Source Patterns
Select and return values directly from one table
Transact-SQL
Snowflake SQL
Select and return values from multiple tables renaming columns and using built in functions
Transact-SQL
Snowflake SQL
Select columns using WITH statement
Transact-SQL
Snowflake SQL
Known issues
Related EWIs
Last updated
