summaryrefslogtreecommitdiffstats
path: root/src/s3select/TPCDS/sample-queries-tpcds/query26.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/s3select/TPCDS/sample-queries-tpcds/query26.sql')
-rw-r--r--src/s3select/TPCDS/sample-queries-tpcds/query26.sql21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/s3select/TPCDS/sample-queries-tpcds/query26.sql b/src/s3select/TPCDS/sample-queries-tpcds/query26.sql
new file mode 100644
index 000000000..7298126cf
--- /dev/null
+++ b/src/s3select/TPCDS/sample-queries-tpcds/query26.sql
@@ -0,0 +1,21 @@
+-- start query 1 in stream 0 using template query26.tpl and seed 1930872976
+select i_item_id,
+ avg(cs_quantity) agg1,
+ avg(cs_list_price) agg2,
+ avg(cs_coupon_amt) agg3,
+ avg(cs_sales_price) agg4
+ from catalog_sales, customer_demographics, date_dim, item, promotion
+ where cs_sold_date_sk = d_date_sk and
+ cs_item_sk = i_item_sk and
+ cs_bill_cdemo_sk = cd_demo_sk and
+ cs_promo_sk = p_promo_sk and
+ cd_gender = 'F' and
+ cd_marital_status = 'S' and
+ cd_education_status = 'College' and
+ (p_channel_email = 'N' or p_channel_event = 'N') and
+ d_year = 1998
+ group by i_item_id
+ order by i_item_id
+ limit 100;
+
+-- end query 1 in stream 0 using template query26.tpl