sql update from select snowflake