From 66e0cebdfa1496380c82a351d607db4d9269f777 Mon Sep 17 00:00:00 2001 From: anthonydb Date: Thu, 1 Oct 2020 22:24:31 -0400 Subject: [PATCH] Chapter 10 code update --- Chapter_10/Chapter_10.sql | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Chapter_10/Chapter_10.sql b/Chapter_10/Chapter_10.sql index 6d4f0b8..a32261e 100644 --- a/Chapter_10/Chapter_10.sql +++ b/Chapter_10/Chapter_10.sql @@ -126,7 +126,8 @@ WHERE establishment_number = 'M45319+P45319'; UPDATE meat_poultry_egg_establishments SET st = 'WI' -WHERE establishment_number = 'M263A+P263A+V263A'; +WHERE establishment_number = 'M263A+P263A+V263A' +RETURNING establishment_number, company, city, st, zip; -- Listing 10-12: Restoring original st column values @@ -151,11 +152,8 @@ SET company_standard = company; UPDATE meat_poultry_egg_establishments SET company_standard = 'Armour-Eckrich Meats' -WHERE company LIKE 'Armour%'; - -SELECT company, company_standard -FROM meat_poultry_egg_establishments -WHERE company LIKE 'Armour%'; +WHERE company LIKE 'Armour%' +RETURNING company, company_standard; -- Listing 10-15: Creating and filling the zip_copy column