How to query columns following the same pattern in a Snowfake table or view?
13:38 01 Apr 2022

I'd like to select some columns which have names following the same pattern. For instance:

SELECT PRICE% FROM DB.SCHEME.VIEW

From that I'm trying to select all fields from a view or table which names start with the string "PRICE", like "PRICE_US", "PRICE_CA", "PRICE_EU", for instance.

What would be the correct way of doing that?

snowflake-cloud-data-platform snowflake-schema