You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-25 20:23:16 +03:00
20 lines
398 B
Plaintext
20 lines
398 B
Plaintext
#
|
|
# Test case migrated from regression test suite:
|
|
# queries/working_tpch1/group/q5.3.1.sql
|
|
#
|
|
# Author: Susil, susil.behera@mariadb.com
|
|
#
|
|
|
|
-- source ../include/have_columnstore.inc
|
|
|
|
USE tpch1;
|
|
|
|
select l_shipdate Revenue_day,
|
|
l_discount district,
|
|
max(l_shipdate) Latest_date,
|
|
sum(l_extendedprice) Total_Revenue,
|
|
count(*) Sales_items
|
|
from lineitem
|
|
group by l_shipdate, l_discount
|
|
order by 1,2;
|