SnowPro Core Exam QuestionsBrowse all questions from this exam

SnowPro Core Exam - Question 1238


This statement is run:

SELECT { 'key' : { 'subkey': 'value' }} mycolumn;

What notations will retrieve the 'value' from the VARIANT column? (Choose two.)

Show Answer
Correct Answer:

Discussion

3 comments
Sign in to comment
37ceea2Options: CE
Feb 2, 2025

I have checked, as well, in snowflake, all C,D,E are working. For me, D was a surprise. I shall select C and E

MultiCloudIronManOptions: CD
Jan 17, 2025

I think C D

bor4unOptions: CE
Jan 24, 2025

Unfortunately C,D,E will work in Snowflake: At the same time accorting to documentation Snowflake separates Dot and Bracket Notation, thst's why voting for C and E. https://docs.snowflake.com/en/user-guide/querying-semistructured#traversing-semi-structured-data

bor4un
Jan 24, 2025

select a.mycolumn:key.subkey, a.mycolumn['key'].subkey, a.mycolumn:key:subkey from ( SELECT { 'key' : { 'subkey': 'value' }} mycolumn ) a;