1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-07 09:01:10 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/autopilot/t/mcs6209_windowFunctions_STDDEV.test
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

259 lines
46 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from Autopilot Window functions test suite
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
use tpch1m;
#
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from orders order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, STDDEV(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;