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

Prolog - Listing -

python - More Issues with overlapping labels in Tkinter -

python - can't seem to get an output from my class -