Guest User

Untitled

a guest
Apr 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. SELECT bike_number, ROUND(SUM(duration_seconds)/3600) AS duration_hours
  2. FROM tutorial.dc_bikeshare_q1_2012
  3. WHERE duration_seconds <175*3600
  4. GROUP BY bike_number
  5. ORDER BY SUM(duration_seconds) DESC
  6. LIMIT 300
Add Comment
Please, Sign In to add comment