diff --git a/Chapter_12/Chapter_12.sql b/Chapter_12/Chapter_12.sql index 4a90b5e..e6e225d 100644 --- a/Chapter_12/Chapter_12.sql +++ b/Chapter_12/Chapter_12.sql @@ -159,6 +159,7 @@ WITH (FORMAT CSV, HEADER); CREATE INDEX tpep_pickup_idx ON nyc_yellow_taxi_trips (tpep_pickup_datetime); +-- Count the trip records SELECT count(*) FROM nyc_yellow_taxi_trips; -- Listing 12-8: Counting taxi trips by hour diff --git a/Chapter_13/Chapter_13.sql b/Chapter_13/Chapter_13.sql index 87a7039..89a78f0 100644 --- a/Chapter_13/Chapter_13.sql +++ b/Chapter_13/Chapter_13.sql @@ -322,7 +322,7 @@ AS (station text, dec numeric(3,0) ); --- Listing 13-20: Re-classifying temperature data with CASE +-- Listing 13-20: Reclassifying temperature data with CASE SELECT max_temp, CASE WHEN max_temp >= 90 THEN 'Hot'