Ive written this set of code which works in a typical SQL format, but when I try running it through snowflake database it errors out due to syntax. What would be my best approach to rearrange this statement to properly work for snowflake. thank you for your time!
if [CUST_TYP] = "Auction" THEN "Auction"
elseif [CUST_TYP] = "Broker / Reseller" THEN "Wholesale"
elseif [CUST_TYP] = "Cat Dealer" THEN "Wholesale"
elseif [CUST_TYP] = "Cat Dealer Rental Fleet" THEN "Wholesale"
elseif [CUST_TYP] = "Cat Private Auction" THEN "Auction"
elseif [CUST_TYP] = "Customer In-territory" THEN "Retail"
elseif [CUST_TYP] = "Customer out of territory, in country" THEN "Retail"
elseif [CUST_TYP] = "Customer out of territory, out of country" THEN "Retail"
else [CUST_TYP]
endif