Hive query - Join or Subquery -


i'm looking performant query. have got 2 tables:

  1. productviews(timecol timestamp, user_id string, product_id int, location_city string)

  2. productactions(timecol timestamp, user_id string, product_id int, location_city string, action string)

action example shopping-cart insert.

i need run query grouped location_city or product_id:

select *, count(productviews), count(productactions), count(distinct user_id) xxx group xxx

has idea?


Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -