Querying Semi-structured Data using Snowflake
- Umme Salma
- Jun 28, 2022
- 1 min read

Typically, hierarchical data has been imported into a VARIANT from one of the following supported data formats:
JSON
Avro
ORC
Parquet
(For information about querying XML data (e.g. data that originated in XML data format and was converted to an OBJECT by calling PARSE_XML), see XMLGET.)
In this Topic:


Using DOT notation
Get the names of all salespeople who sold cars:
select src:salesperson.namefrom car_salesorder by 1;
Using Bracket notation select src['salesperson']['name']from car_salesorder by 1;
Source : https://docs.snowflake.com/en/user-guide/querying-semistructured.html




Comments