I am working on converting a MS SQL query to Snowflake SQL. The code creates a dynamic start and end date, creates the temp table, then inserts the data from the query into the