From 17d24b576906ca91a1e653b05685fb7e6488e4aa Mon Sep 17 00:00:00 2001 From: Greg Rahn Date: Wed, 26 Apr 2017 21:25:39 -0700 Subject: [PATCH] Update query77a.tpl Fix to make it semantically equivalent to query77. --- query_variants/query77a.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/query_variants/query77a.tpl b/query_variants/query77a.tpl index c1ad503..ebe99c0 100644 --- a/query_variants/query77a.tpl +++ b/query_variants/query77a.tpl @@ -73,7 +73,7 @@ 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, @@ -81,6 +81,7 @@ 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,