Appendix - Bike Trips Analysis

Prepare


Process

Cleaning in spreadsheets

2022-03

2022-04

2022-05

2022-06

2022-07

2022-08

2022-09

2022-10

2022-11

2022-12

2023-01

2023-02

Analyze

Analyzing the data using spreadsheets

Analyzing the data using BigQuery

Queries


## What kind of bikes are casual and members using?

SELECT member_casual,

rideable_type,

COUNT(*) AS number_of_bikes

FROM `sonic-diorama-378511.Cyclistic_trip_data.202302` 

GROUP BY rideable_type, member_casual

ORDER BY member_casual


## Rides per member/casual and weekday

SELECT member_casual,

weekday,

COUNT(*) AS bikes_per_weekday

FROM `sonic-diorama-378511.Cyclistic_trip_data.202302` 

GROUP BY member_casual, weekday


## Most popular start stations

SELECT COUNT(*) AS number_of_rides,

start_station_name

FROM `sonic-diorama-378511.Cyclistic_trip_data.202302` 

WHERE member_casual = "casual" 

GROUP BY start_station_name 

ORDER BY number_of_rides DESC


## Most popular end stations

SELECT COUNT(*) AS number_of_rides,

end_station_name

FROM `sonic-diorama-378511.Cyclistic_trip_data.202302` 

WHERE member_casual = "casual" 

GROUP BY end_station_name 

ORDER BY number_of_rides DESC


## The duration of the rides

## WHERE ride_length < "00:15:00"

## WHERE "00:15:00" <= ride_length AND ride_length < "00:30:00"

## WHERE "00:30:00" <= ride_length AND ride_length < "01:00:00"

## WHERE "01:00:00" <= ride_length


SELECT COUNT(*),

member_casual,

FROM `sonic-diorama-378511.Cyclistic_trip_data.202302` 

WHERE "01:00:00" <= ride_length

GROUP BY member_casual