diff --git a/Chapter_16/Chapter_16.sql b/Chapter_16/Chapter_16.sql index bf3e842..5a1438b 100644 --- a/Chapter_16/Chapter_16.sql +++ b/Chapter_16/Chapter_16.sql @@ -260,7 +260,7 @@ FROM earthquakes ORDER BY (earthquake #>> '{properties, mag}')::numeric DESC NULLS LAST LIMIT 5; --- Listing 16-16: Finding earthquakes with most Did You Feel It? reports +-- Listing 16-16: Finding earthquakes with the most Did You Feel It? reports -- https://earthquake.usgs.gov/data/dyfi/ SELECT earthquake #>> '{properties, place}' AS place, @@ -367,7 +367,7 @@ UPDATE films SET film = jsonb_set(film, '{genre}', film #> '{genre}' || '["World War II"]', - false) + true) WHERE film @> '{"title": "Cinema Paradiso"}'::jsonb; SELECT film FROM films -- check the updated data