Hello everyone,
I have a requirement to append new rows to a Snowflake table, but I need to ensure that duplicate rows are not inserted. Unfortunately, I cannot use an "Update; Insert if New" approach because the table does not have a primary key.
The table includes columns such as T_Date, Total_customers, and Total_Income, and I am generating rows for the past 3 days (T_Date).
Note: I cannot delete and recreate the table with a primary key due to the large amount of production data it contains.
Could you please suggest any alternative methods, such as pre or post SQL queries, to achieve this?