Extracting Nested Fields
Harbr's logistics pipeline ingests real-time shipment events from carrier APIs into the logistics.delivery_events table. Each event stores structured carrier and location data as a JSON payload in the event_payload VARIANT column.
The data team needs to extract specific fields from these payloads - carrier name, tracking reference, and destination city - so they can surface exception events for operational review. Your task is to query this semi-structured data and identify which carrier and city are associated with a specific shipment exception.
Use the table's full path in your ⚠️ Can't select a database, or getting a "table not found" error?
FROM clause. Get it from the left panel: Databases tab → expand your COURSE_… database → select the table → Copy name.
This exercise is part of the course
Data Pipeline Automation in Snowflake
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise