select
to_char(pickup_datetime, 'DD Mon YYYY') as start_date,
to_char(dropoff_datetime, 'DD Mon YYYY') as end_date
from
nyc_yellow_taxi_0601_0615_2016
where
tip_amount > 0
and trip_distance > 2
limit
5
select
to_char(pickup_datetime, 'D Month YYYY') as start_date,
to_char(dropoff_datetime, 'D Month YYYY') as end_date
from
nyc_yellow_taxi_0601_0615_2016
where
tip_amount > 0
and trip_distance > 2
limit
5
select
extract(
dow
from
pickup_datetime
) as day_of_week,
extract(
hour
from
pickup_datetime
) as hour_of_day
from
nyc_yellow_taxi_0601_0615_2016
where
tip_amount > 0
and trip_distance > 2
limit
5