From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- src/s3select/TPCDS/sample-queries-tpcds/query43.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/s3select/TPCDS/sample-queries-tpcds/query43.sql (limited to 'src/s3select/TPCDS/sample-queries-tpcds/query43.sql') diff --git a/src/s3select/TPCDS/sample-queries-tpcds/query43.sql b/src/s3select/TPCDS/sample-queries-tpcds/query43.sql new file mode 100644 index 000000000..89843d1e7 --- /dev/null +++ b/src/s3select/TPCDS/sample-queries-tpcds/query43.sql @@ -0,0 +1,19 @@ +-- start query 1 in stream 0 using template query43.tpl and seed 1819994127 +select s_store_name, s_store_id, + sum(case when (d_day_name='Sunday') then ss_sales_price else null end) sun_sales, + sum(case when (d_day_name='Monday') then ss_sales_price else null end) mon_sales, + sum(case when (d_day_name='Tuesday') then ss_sales_price else null end) tue_sales, + sum(case when (d_day_name='Wednesday') then ss_sales_price else null end) wed_sales, + sum(case when (d_day_name='Thursday') then ss_sales_price else null end) thu_sales, + sum(case when (d_day_name='Friday') then ss_sales_price else null end) fri_sales, + sum(case when (d_day_name='Saturday') then ss_sales_price else null end) sat_sales + from date_dim, store_sales, store + where d_date_sk = ss_sold_date_sk and + s_store_sk = ss_store_sk and + s_gmt_offset = -6 and + d_year = 2001 + group by s_store_name, s_store_id + order by s_store_name, s_store_id,sun_sales,mon_sales,tue_sales,wed_sales,thu_sales,fri_sales,sat_sales + limit 100; + +-- end query 1 in stream 0 using template query43.tpl -- cgit v1.2.3