Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. SELECT
  2. -- The continent from which events were reported, based on IP address
  3. geo.continent,
  4. -- The subcontinent from which events were reported, based on IP address
  5. geo.sub_continent,
  6. -- The country from which events were reported, based on IP address
  7. geo.country,
  8. -- The region from which events were reported, based on IP address
  9. geo.region,
  10. -- The city from which events were reported, based on IP address
  11. geo.city,
  12. -- The metro from which events were reported, based on IP address
  13. geo.metro
  14. FROM
  15. `firebase-orangevalley-web-app.analytics_206829311.events_*`
  16. WHERE
  17. _table_suffix BETWEEN '20190806'
  18. AND FORMAT_DATE('%Y%m%d',DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY))
  19. GROUP BY
  20. 1,
  21. 2,
  22. 3,
  23. 4,
  24. 5,
  25. 6
  26. LIMIT
  27. 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement