Relative Content

Tag Archive for snowflake-cloud-data-platformsnowflake-schema

Snowflake encryption for data in table

I would like to know if any custom encryption can be built on snowflake? We do not want to use Trisecure option. We need a encryption logic to encrypt the data in view alone and then user can decrypt with the key shard with them . We dont want to encrypt the underlying table as it will affect the ETL Logic.

Group records on multiple columns in snowflake

Need to group records from following below sample input data on based on state,card number,card type, origin, method of payment, sales amount so that all records belonging to same group will be present in single row.

Dynamically lateral flatten in Snowflake

{ “explosives_UG”:{ “isCritical”: false, “value”: “N/A” }, “explosivesUG”: { “comment”: “Test 619 313”, “createWo”: false, “isCritical”: false, “value”: “No” }, “generalAttachment”: null, “generalComment”: “Test 619 313”, “guardsPostedUG”: { “isCritical”: false, “value”: “Yes” }, “imminentUG”: { “isCritical”: false, “value”: “Yes” } } using the above JSON format, output is generated as below via Snowflake query question […]

Snowflake – Lateral flatten

{ “area”: { “id”: “TEST1” “value”: “TEST1” }, { “testcom”: { “conditions”: [ { “assignedto”: { “workphone”:NULL }, “isClause”:false } ], “iscritical”: true, “value”: “Conditon” } } } Hi, the output of json structure is as above questions answer isClause testcom conditions FALSE Need the output as above, i have used the below SQL, not […]

how to add Interval time in snowflake using a parameter

We have a use case where user will provide starttime, endtime, and Interval as parameters. and we need to pass these parameters to view logic where we have business logic, But the Interval function is not accepting any parameters. Please help how to pass parameter to add interval. below is a simple example.