From 2748bd3c388e3c150656c6deea1f69c7cab45551 Mon Sep 17 00:00:00 2001 From: anthonydb Date: Tue, 11 Aug 2020 07:44:32 -0400 Subject: [PATCH] Add ordering to supervisor queries in Chapter 5 --- Chapter_05/Chapter_05.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter_05/Chapter_05.sql b/Chapter_05/Chapter_05.sql index b892da4..5d5bd66 100644 --- a/Chapter_05/Chapter_05.sql +++ b/Chapter_05/Chapter_05.sql @@ -83,7 +83,7 @@ FROM 'C:\YourDirectory\supervisor_salaries.csv' WITH (FORMAT CSV, HEADER); -- Check the data -SELECT * FROM supervisor_salaries LIMIT 2; +SELECT * FROM supervisor_salaries ORDER BY id LIMIT 2; -- Listing 5-6 Use a temporary table to add a default value to a column during -- import @@ -104,7 +104,7 @@ FROM supervisor_salaries_temp; DROP TABLE supervisor_salaries_temp; -- Check the data -SELECT * FROM supervisor_salaries LIMIT 2; +SELECT * FROM supervisor_salaries ORDER BY id LIMIT 2; -- Listing 5-7: Export an entire table with COPY