This is my first post on Stackoverflow, I hope I'm in-bounds with the rules. I'm currently going through the Snowflake DB and I'm trying to update a table using "UPDATE", but I receive this error SQL compilation error: syntax error line 6 at position 0 unexpected 'UPDATE'. syntax error line 7 at position 38 unexpected ') I've already checked the syntax format and special characters. Could someone assist? (I'm a novice)
Select Replace (Fdgrp_cd,'~','') as Fdgrp_cd
from "USDA_NUTRIENT_STDREF_01"."PUBLIC"."FD_GROUP_INGEST"
UPDATE "USDA_NUTRIENT_STDREF_01"."PUBLIC"."FD_GROUP_INGEST"
SET Fdgrp_cd = REPLACE(fdgrp_cd,'~','')