I am trying to migrate a SQL Server Proc to Snowflake. In SQL Server, we have a proc which uses WHILE EXISTS and then Query. But I am unable to figure out the equivalent for Snowflake.
In SQL SERVER
WHILE EXISTS (QUERY)
BEGIN
---
END;
Snowflake Giving Error
WHILE EXISTS (QUERY) do
---
END WHILE;
