From 55072cffbc4bea07a1bc923c0ae20a0c45a0ec0a Mon Sep 17 00:00:00 2001 From: anthonydb Date: Sat, 28 Aug 2021 06:43:50 -0400 Subject: [PATCH] Chapter 13 updates --- Chapter_13/Chapter_13.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Chapter_13/Chapter_13.sql b/Chapter_13/Chapter_13.sql index 67738d1..87a7039 100644 --- a/Chapter_13/Chapter_13.sql +++ b/Chapter_13/Chapter_13.sql @@ -17,7 +17,7 @@ WHERE pop_est_2019 >= ( ) ORDER BY pop_est_2019 DESC; --- Listing 13-2: Using a subquery in a WHERE clause for DELETE +-- Listing 13-2: Using a subquery in a WHERE clause with DELETE CREATE TABLE us_counties_2019_top10 AS SELECT * FROM us_counties_pop_est_2019; @@ -109,7 +109,8 @@ SELECT first_name, last_name FROM employees WHERE emp_id IN ( SELECT id - FROM retirees); + FROM retirees) +ORDER BY emp_id; -- Listing 13-9: Using a correlated subquery with WHERE EXISTS