Skip to content

Commit

Permalink
v0.4
Browse files Browse the repository at this point in the history
user access path sql update
  • Loading branch information
cobub committed Jan 8, 2013
1 parent 10672a5 commit 6c2e9c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/assets/sql/datawarestore.sql
Expand Up @@ -337,7 +337,8 @@ from databaseprefix.umsdatainstall_clientusinglog u,
umsinstall_dim_product p,
umsinstall_dim_activity a
where date(u.start_millis) = d.datevalue and
u.appkey = p.product_key
u.appkey = p.product_key
and p.product_id=a.product_id
and u.version = p.version_name
and u.activities = a.activity_name
and u.insertdate between starttime and endtime;
Expand Down Expand Up @@ -1599,12 +1600,12 @@ repeat

else
update umsinstall_sum_accesspath set count=count+1
where product_sk=cproductsk and fromid=clastactivityid
where product_sk=clastproductsk and fromid=clastactivityid
and toid=-999 and jump=seq;

if row_count()=0 then
insert into umsinstall_sum_accesspath(product_sk,fromid,toid,jump,count)
select cproductsk,clastactivityid,-999,seq,1;
select clastproductsk,clastactivityid,-999,seq,1;
end if;
set seq = 1;

Expand Down

0 comments on commit 6c2e9c5

Please sign in to comment.