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 - 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