Snowflake Vs MS-SQL - Part 69 - Flow Operator To Save Result-set Temporary

        



Flow Operator To Save Data Temporary

Many times you have to execute multiple SQL statements and you have to save the result-set temporary which will be used in next SQL statement.


MS-SQL Server 

We can achieve this by using temporary tables. Also you can use CTE as below:



In Snowflake, we can use similar approach, however it has an additional operator Flow Operators, as below:




For more details, you can refer: FLOW_OPERATOR & 
ARRAY_TO_STRING.


         

Comments

Popular posts from this blog

Snowflake Vs MS-SQL - Series

Snowflake Vs MS-SQL - Part 79 - Adding a comment to the Column of a Table

Snowflake Vs MS-SQL - Part 75 - String Length and Trimmed Length