Viewing 9 posts - 1 through 9 (of 9 total)
and yeah the curation of the trip is time, but there is a start station code and an end station code for where the bikes were picked up and where...
January 17, 2019 at 1:35 pm
Ah yeah, I missed, there is an end_station_code as well,
January 17, 2019 at 1:34 pm
Haha, of course, ok so I got this so far:
CREATE VIEW stationtriplength AS
SELECT trips.start_station_code, trips.duration_sec, stations.name
FROM trips JOIN stations ON trips.start_station_code = stations.code
January 17, 2019 at 12:58 pm
Sorry for all the questions, this should be the last one: I have the date in the DATETIME format and the question asked me to find the average trip length...
January 16, 2019 at 1:06 pm
The Last_day function worked! And yeah my bad, I had to use CAST as well. Thank you guys so much, it worked!
January 16, 2019 at 9:13 am
SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal(9,1),COUNT(*)/(DAY(EOMONTH(start_date))+0.0)) AverageTripsPerDay
January 16, 2019 at 7:47 am
Jonathan AC -- it keeps giving me a syntax error
January 16, 2019 at 7:38 am
If I had to calculate the average number of trips per day for each yeah-month combination, would I add to the above query or does it have to be separate...
January 15, 2019 at 12:22 pm
Viewing 9 posts - 1 through 9 (of 9 total)