SHARE
TWEET

Untitled

a guest Jun 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. deviceid  year  month   value
  2. 432       2019  3       2571
  3. 432       2019  2       90
  4. 432       2019  1       314
  5. 432       2018  12      0
  6. 432       2018  11      100
  7. 437       2019  2       0
  8. 437       2019  1       1
  9. 437       2018  12      0
  10. 437       2018  11      3
  11. 437       2018  10      2
  12. 437       2018  9       0
  13. 437       2018  8       2
  14.      
  15. deviceId  Average
  16. 432       991.7
  17. 437       0.3
  18.      
  19. select deviceId, avg(value) from Table group by deviceid
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top