Guest User

Untitled

a guest
Oct 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # The IDs and durations for all trips of duration greater than 500, ordered by duration.
  2.  
  3. SELECT
  4. trip_id,
  5. duration
  6. FROM
  7. trips
  8. WHERE
  9. duration > 500
  10. ORDER BY duration DESC;
  11.  
  12. # Every column of the stations table for station id 84.
  13.  
  14. SELECT *
  15. FROM
  16. stations
  17. WHERE
  18. station_id = 84;
  19.  
  20. # The min temperatures of all the occurrences of rain in zip 94301
  21.  
  22. SELECT
  23. mintemperaturef
  24. FROM
  25. weather
  26. WHERE
  27. zip = 94301 AND
  28. events LIKE 'Rain';
Add Comment
Please, Sign In to add comment