diff --git a/Chapter_16/Chapter_16.sql b/Chapter_16/Chapter_16.sql index 5a1438b..f01db67 100644 --- a/Chapter_16/Chapter_16.sql +++ b/Chapter_16/Chapter_16.sql @@ -128,6 +128,7 @@ FROM films WHERE film @> '{"title": "The Incredibles"}'::jsonb; -- Listing 16-8: Demonstrating the <@ containment operator + SELECT film ->> 'title' AS title, film ->> 'year' AS year FROM films diff --git a/Chapter_17/Chapter_17.sql b/Chapter_17/Chapter_17.sql index 9bb6a0d..c39015f 100644 --- a/Chapter_17/Chapter_17.sql +++ b/Chapter_17/Chapter_17.sql @@ -192,7 +192,7 @@ BEGIN ELSE 3 END; RAISE NOTICE 'personal_days updated!'; -END +END; $$ LANGUAGE plpgsql;