Guest User

Untitled

a guest
Apr 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. select
  2. click_id,
  3. ip,
  4. device,
  5. os,
  6. count(*)
  7. from (
  8. select
  9. click_id,
  10. ip,
  11. device,
  12. os,
  13. click_time
  14. from raw
  15. order by ip, device, os, click_time
  16. )
  17. all inner join (
  18. select
  19. ip,
  20. device,
  21. os,
  22. click_time as click_time2
  23. from raw
  24. order by ip, device, os, click_time2
  25. ) using ip, device, os
  26. where click_time >= click_time2
  27. group by click_id, ip, device, os
  28. limit 25
Add Comment
Please, Sign In to add comment