1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Redshift

Connected

Exercise

Extracting top level JSON keys

The Idaho field team is back at it again, they got a new weather station that is outputting JSON strings that they'd like you to get data out of for them. The JSON is in the CTE named weather_station for you to work with. It has the JSON string in the data column.

Instructions

100 XP
  • Extract the 'date' value from the data as weather_date.
  • Extract the 'weather' value from the data as weather_state.