diff --git a/dbgen/dss.ddl b/dbgen/dss.ddl index 89efe56a..fd5ed690 100644 --- a/dbgen/dss.ddl +++ b/dbgen/dss.ddl @@ -46,8 +46,8 @@ CREATE TABLE ORDERS ( O_ORDERKEY INTEGER NOT NULL, O_ORDERSTATUS CHAR(1) NOT NULL, O_TOTALPRICE DECIMAL(15,2) NOT NULL, O_ORDERDATE DATE NOT NULL, - O_ORDERPRIORITY CHAR(15) NOT NULL, - O_CLERK CHAR(15) NOT NULL, + O_ORDERPRIORITY CHAR(15) NOT NULL, + O_CLERK CHAR(15) NOT NULL, O_SHIPPRIORITY INTEGER NOT NULL, O_COMMENT VARCHAR(79) NOT NULL); diff --git a/dbgen/queries/1.sql b/dbgen/queries/1.sql index d0309599..0200845e 100644 --- a/dbgen/queries/1.sql +++ b/dbgen/queries/1.sql @@ -18,7 +18,7 @@ select from lineitem where - l_shipdate <= date '1998-12-01' - interval ':1' day (3) + l_shipdate <= date '1998-12-01' - interval ':1' day group by l_returnflag, l_linestatus diff --git a/dbgen/queries/13.sql b/dbgen/queries/13.sql index 20dd693e..b0452c73 100644 --- a/dbgen/queries/13.sql +++ b/dbgen/queries/13.sql @@ -11,14 +11,14 @@ from ( select c_custkey, - count(o_orderkey) + count(o_orderkey) c_count from customer left outer join orders on c_custkey = o_custkey and o_comment not like '%:1%:2%' group by c_custkey - ) as c_orders (c_custkey, c_count) + ) group by c_count order by