We have a requirement wherein the result returned by a select statement should be dynamic based on the select query executed. So, we are leaning towards a solution of calling a stored procedure within a function that will be used in the select statement.
Question is: can we call a stored procedure from a function in Snowflake? And what would be the syntax be?
Please share.