Update one of the key value in the ARRAY Column in Snowflake
Requirement : To update the Array Column for all those which is having one of the key value as empty
Generate an ID that represents matches of other fields
I have a table in a Snowflake SQL database table:
How to derive the next working day using SQL
I currently have a DATE view that looks like this:
How to Change Parameter name of SQL function
I am trying to change the parameter name of an SQL function using an SQL command. ALTER FUNCTION seems possible but I’m unsure of the syntax. Here is the signature:
Extracting Time from Date/Time attribute in Snowflake
I have a column whose data is formatted like this: ‘2024-05-26 10:00:00.000’
How does one use CTEs in a stored procedure in Snowflake?
This very simple example fails in Snowflake:
In snowflake can you pass ILIKE ANY a list from a variable
When I have a list of values in one variable you can pass them to a where clause using something like this:
Pick best filled value of multiple occurences of value combination in SQL
I have the following piece of SQL code:
Max LOB size (16777216) exceeded, actual size of parsed column is 37699772
with cte as ( select function_returning_array(start, end) as arr from my_table ) select array_agg(value) from cte, table (flatten(cte.arr)); The code above returns the error: Max LOB size (16777216) exceeded, actual size of parsed column is 37699772 How can I improve this code so it will run? I understand the error is coming from the dataset […]
Spit a table of arrays into table with rows for each element of the arrays
I am trying to find the most efficient way in Snowflake to split a table of arrays into a table with all the elements into individual rows.