From ab479c5d1f10e9977d3811545a3b26e9e8b2684e Mon Sep 17 00:00:00 2001 From: anthonydb Date: Sat, 17 Apr 2021 17:55:54 -0400 Subject: [PATCH] Fix import directory. --- Chapter_14/Chapter_14.sql | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Chapter_14/Chapter_14.sql b/Chapter_14/Chapter_14.sql index ab4748d..ec8df33 100644 --- a/Chapter_14/Chapter_14.sql +++ b/Chapter_14/Chapter_14.sql @@ -96,8 +96,7 @@ CREATE TABLE crime_reports ( ); COPY crime_reports (original_text) --- FROM 'C:\YourDirectory\crime_reports.csv' -FROM '/Users/adebarros/Dropbox/DataMonky/Book-Writing/PracticalSQL_2e/Code-Repo/Chapter_14/crime_reports.csv' +FROM 'C:\YourDirectory\crime_reports.csv' WITH (FORMAT CSV, HEADER OFF, QUOTE '"'); SELECT original_text FROM crime_reports; @@ -271,8 +270,7 @@ CREATE TABLE president_speeches ( ); COPY president_speeches (president, title, speech_date, speech_text) --- FROM 'C:\YourDirectory\president_speeches.csv' -FROM '/Users/adebarros/Dropbox/DataMonky/Book-Writing/PracticalSQL_2e/Code-Repo/Chapter_14/president_speeches.csv' +FROM 'C:\YourDirectory\president_speeches.csv' WITH (FORMAT CSV, DELIMITER '|', HEADER OFF, QUOTE '@'); SELECT * FROM president_speeches;