Posts

Showing posts from October, 2026

Snowflake Vs MS-SQL - Part 119 - Finding Gaps in Sequential Data - GENERATOR

Image
Finding Gaps in Sequential Data - GENERATOR Suppose you store data sequentially and need to find gaps in the numbers. In this case, we have to find 1004, 1007 & 1008 MS-SQL Server You can achieve this by using built-in functions like DATEADD as below: In Snowflake, we can use a similar approach as above; however, we can use the GENERATOR as follows: For more details, refer to the Generator section. Yogesh Shinde LinkedInProfile <<< Back Next >>> Snowflake Vs MS-SQL - Series                  

Snowflake Vs MS-SQL - Part 118 - Interval Data Type

Image
Interval Data Type In certain scenarios, a start date and an interval are available, and the end date must be derived by applying the interval to the start date. MS-SQL Server You can achieve this by using built-in functions like DATEADD as below: In Snowflake,   we can use a similar approach as above; however,  we can use  the  INTERVAL DATA TYPE  as follows: For more details, refer to the Interval_DataType section. Yogesh Shinde LinkedInProfile <<< Back Next >>> Snowflake Vs MS-SQL - Series                

Snowflake Vs MS-SQL - Part 117 - Error Handling - DML

Image
Error Handling - DML When you run bulk DML and a row's data doesn't match the table structure, the statement fails. MS-SQL Server We can see it here; this statement will fail with " Cannot insert the value NULL into column does not allow nulls" or " Conversion failed when converting". As a result, zero records will be inserted. In Snowflake, we can use ERROR_LOGGING as follows; as a result, two records with errors will be skipped, and a single record will be inserted: Yogesh Shinde LinkedInProfile <<< Back Next >>> Snowflake Vs MS-SQL - Series