Guest User

Untitled

a guest
May 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. 1)What was the hottest day in our data set? Where was that?
  2. select
  3. zip,
  4. max(maxtemperatureF)
  5. from
  6. weather
  7.  
  8.  
  9. 2) How many trips started at each station?
  10. select
  11. start_station,
  12. count(*) number_trips
  13. from
  14. trips
  15. GROUP BY 1
  16.  
  17. 3)What's the shortest trip that happened?
  18. select
  19. min(duration)Shortest_trip
  20. from
  21. trips
  22.  
  23. 4) What is the average trip duration, by end station?
  24. select
  25. end_station,
  26. AVG(duration) Average_Duration
  27. from
  28. trips
  29. Group BY 1
Add Comment
Please, Sign In to add comment