
Answer-first summary for fast verification
Answer: select data:BIKE.BIKEID
The correct syntax for accessing nested JSON elements in Snowflake's VARIANT data type uses a colon (:) to access the root element and a dot (.) for subsequent nested elements. Option C (data:BIKE.BIKEID) correctly follows this syntax pattern where 'data' is the column name, 'BIKE' is the root node accessed with ':', and 'BIKEID' is the child attribute accessed with '.'. This aligns with Snowflake documentation and the community consensus where C has 83% support. Option A only accesses BIKEID directly without the BIKE root node. Option B incorrectly uses dot notation for the root element. Option D incorrectly uses colons for both levels, which is not the standard Snowflake syntax for JSON path navigation.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.