I'm trying to convert the date field from YYYY-MM-DD HH:MM:SS:MS to MM/DD/YYYY format in a view using Snowflake database with below condition: I'm ...
I'm trying to convert the date field from YYYY-MM-DD HH:MM:SS:MS to MM/DD/YYYY format in a view using Snowflake database with below condition: I'm ...
Here is an example of the data- Example First rank is done based on event_time ascending. After the first ranking I need record 2 to record 6 be ran ...
I am trying to use agg functions to query data, I have space in the column name in SNOWFLAKE The error is Expected output is Code which gives i ...
My T SQL - left(convert(char,Month,111),7) "Year-Mon" Below is the error I'm getting Error: invalid identifier 'CHAR' ...
Generating external tables in SnowFlake works very well, but when you use the dbt to do this, it generates errors in the validation of fields that com ...
We have Json Varaint column in the table. The column D has json variant value like this - [ "[{"xyz_id":0001,"abc_id":10032,"dis_name":" AP 20%","dis_ ...
The idea of this code was to insert new rows into a table after determining which "load_id"(s) are not present. Is there a way to achieve the same ...
I'm new to Dremio. Could anyone help me with how to build dremio connection in snowflake. CREATE STAGE <stage_name> URL = 'http://<dremio ...
split unstructured address into multiple rows using snowflake. consider the table col_A 4402, 4420, 4330, 4 ...
Trying to standardize column b numbers and find the numbers between them ColumnA ColumnB 20 34 ...
We have a process to load the data from a csv to a Snowflake Table. But as the input file is gzip format and after unzipping it is around 70 to 80 GB ...
In oracle userenv('LANG') is used to get the language but not sure how to achieve the same in snowflake. tried select SYS_CONTEXT('USERENV', 'LANGUAGE ...
I have a query which selects a data from table: LET OLDG_NAME VARCHAR(50) := (SELECT PG_NAME FROM RGS WHERE PG_ID = :G_ID LIMIT 1); if the above sele ...
I have a large Snowflake database with 70+ tables and 3000+ fields. Is there a query I can use across the entire database to find all columns with all ...
I have a table (Customers) that has customer ids, order dates and product type I want to find the second last order date based on their order history. ...
I am trying to load below json data from azure stage using flatten #stage(azure) while running above queries, i am getting below error i also t ...
I'm tring to monitor snowflake tasks from information_schema.TASK_HISTORY, I have as task: TASK_A created by user: USER_A with role: ROLE_A and anothe ...
Requirement: To connect and execute the RScript with connection from R to SnowflakeDB I am trying to set up a Docker image that can communicate with ...
I have a string that looks like How do I ignore everything and just fetch rows based on "Arbitrary Fees"? I tried the below query and it doesn't wo ...
I have to create TSV file in snowflake. If anyone knows could you please share the sample code. ...