Snowflake Vs MS-SQL - Part 58 - Number Generator

     



Number Generator

Sometimes you need to generate numbers in sequential orders as below:


 
MS-SQL Server 

You can achieve this by using multiple ways, one of them is using CTE.




However, in Snowflake we can achieve this by using a Generator.





For more details, you can refer to the following Generator.


 

Comments

Popular posts from this blog

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

Snowflake Vs MS-SQL - Part 33 - INITCAP

Snowflake Vs MS-SQL - Part 70 - UNION By Name