Skip to content

Commit

Permalink
Update query77a.tpl
Browse files Browse the repository at this point in the history
Fix to make it semantically equivalent to query77.
  • Loading branch information
gregrahn authored Apr 27, 2017
1 parent 3a3d823 commit 17d24b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion query_variants/query77a.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@
group by cs_call_center_sk
),
cr as
(select
(select cr_call_center_sk
sum(cr_return_amount) as returns,
sum(cr_net_loss) as profit_loss
from catalog_returns,
date_dim
where cr_returned_date_sk = d_date_sk
and d_date between cast('[SALES_DATE]' as date)
and (cast('[SALES_DATE]' as date) + 30 )
group by cr_call_center_sk
),
ws as
( select wp_web_page_sk,
Expand Down

0 comments on commit 17d24b5

Please sign in to comment.