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 - Part 36 - SPLIT_TO_TABLE

Snowflake Vs MS-SQL - Part 63 - ON Clause & Cross Join

Snowflake Vs MS-SQL - Part 33 - INITCAP