1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/demo/test502/m0002.sql
2016-01-06 14:08:59 -06:00

19 lines
720 B
SQL

# Updates order rows.
update orders2 set o_orderpriority=concat('upd-', o_orderkey), o_custkey=-1 where o_orderdate <= '1992-01-31';
select count(distinct o_orderpriority) from orders2 where o_orderdate <= '1992-01-31';
select count(*) from orders2 where o_custkey = -1;
delete from orders2 where o_orderdate <= '1992-01-31';
select count(*) from orders2;
select count(o_orderkey) from orders2;
select count(o_custkey) from orders2;
select count(o_orderstatus) from orders2;
select count(o_totalprice) from orders2;
select count(o_orderdate) from orders2;
select count(o_orderpriority) from orders2;
select count(o_clerk) from orders2;
select count(o_shippriority) from orders2;
select count(o_comment) from orders2;