Minor edits during proofreading
This commit is contained in:
parent
5c6d6e02b0
commit
b5fbb1fe2b
@ -159,6 +159,7 @@ WITH (FORMAT CSV, HEADER);
|
|||||||
CREATE INDEX tpep_pickup_idx
|
CREATE INDEX tpep_pickup_idx
|
||||||
ON nyc_yellow_taxi_trips (tpep_pickup_datetime);
|
ON nyc_yellow_taxi_trips (tpep_pickup_datetime);
|
||||||
|
|
||||||
|
-- Count the trip records
|
||||||
SELECT count(*) FROM nyc_yellow_taxi_trips;
|
SELECT count(*) FROM nyc_yellow_taxi_trips;
|
||||||
|
|
||||||
-- Listing 12-8: Counting taxi trips by hour
|
-- Listing 12-8: Counting taxi trips by hour
|
||||||
|
|||||||
@ -322,7 +322,7 @@ AS (station text,
|
|||||||
dec numeric(3,0)
|
dec numeric(3,0)
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Listing 13-20: Re-classifying temperature data with CASE
|
-- Listing 13-20: Reclassifying temperature data with CASE
|
||||||
|
|
||||||
SELECT max_temp,
|
SELECT max_temp,
|
||||||
CASE WHEN max_temp >= 90 THEN 'Hot'
|
CASE WHEN max_temp >= 90 THEN 'Hot'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user