Relative Content

Tag Archive for stored-proceduressnowflake-cloud-data-platform

Rolling x weeks in a table

Need to create a table with above 200M records using multiple underlying tables and couple views and lot of joins etc.
It is based on one main underlying fact table that has a date stamp (updates weekly). Others are mainly Dim tables.
We only need to keep x weeks of rolling data and update it weekly.

Snowflake SQL Procedure CALL using OBJECT CONSTRUCT

I’m trying to create a snowflake procedure in SQL which takes two inputs (first is table_name and second is object where key is column_name and value is 1,2,3 etc.,). When the value is 1, then it should check if there are more than 10% null values in that column and return message based on successful and failed validations.