1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-5333: Full MTR tests for custom Build (#2732)

* Add MTR_SUITE_LIST

* Typo

* Add data download

* Install tar and lz4

* Change the way MTR_SUITE_LIST is set up

* Use bash for MTR_SUITE_LIST

* Another one

* Fix reference results for full MTR develop, disable broken JSON test and tests with 10GB database

* Fix timestamps and truncate cos

* Fix some more references

* Fix dokcerhub step for custom build

* One more fix for dockerhub step on custom build

* Fix tests for regr functions with truncate

* Full mtr set on nghtly + MTR_FULL_SET flag

* One more fix for dockerhub

* Fix MTR_FULL_SET

* Testing MTR_FULL_SET

* sorted_result in tests + fix typo

* Truncate even more

* Typo

* truncate 2 more tests

* Disable regr_* functions tests

* fix setup mtr step

* correct settings for table creation

* Put setup for tests into drone

* Fix for debian based distros

* More truncates

* Disable the rest

---------

Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
This commit is contained in:
Andrey Piskunov
2023-02-27 12:42:48 +02:00
committed by GitHub
parent 71a6f691fd
commit 8671f55784
46 changed files with 2705216 additions and 2702901 deletions

View File

@ -68,6 +68,8 @@ local core_dump_check = 'https://raw.githubusercontent.com/mariadb-corporation/m
local core_dump_drop = 'https://raw.githubusercontent.com/mariadb-corporation/mariadb-columnstore-engine/develop/core_dumps/core_dump_drop.sh';
local ansi2html = 'https://raw.githubusercontent.com/mariadb-corporation/mariadb-columnstore-engine/develop/core_dumps/ansi2html.sh';
local logs = 'https://raw.githubusercontent.com/mariadb-corporation/mariadb-columnstore-engine/with_service_logs/core_dumps/logs.sh';
local mtr_suite_list = 'basic,bugfixes';
local mtr_full_set = 'basic,bugfixes,devregression,autopilot,extended,multinode,oracle,1pmonly';
local platformMap(platform, arch) =
local platform_map = {
@ -116,11 +118,12 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
local regression_ref = if (branch == any_branch) then 'develop' else branch,
// local regression_tests = if (std.startsWith(platform, 'debian') || std.startsWith(platform, 'ubuntu:20')) then 'test000.sh' else 'test000.sh,test001.sh',
local branchp = if (branch == '**') then '' else branch,
local branchp = if (branch == '**') then '' else branch + '/',
local brancht = if (branch == '**') then '' else branch + '-',
local result = std.strReplace(std.strReplace(platform, ':', ''), '/', '-'),
local container_tags = if (event == 'cron') then [branch + '-' + std.strReplace(event, '_', '-') + '-${DRONE_BUILD_NUMBER}', branch] else [branch + '-' + std.strReplace(event, '_', '-') + '-${DRONE_BUILD_NUMBER}'],
local container_version = branch + '/' + event + '/${DRONE_BUILD_NUMBER}/' + server + '/' + arch,
local container_tags = if (event == 'cron') then [brancht + std.strReplace(event, '_', '-') + '${DRONE_BUILD_NUMBER}', brancht] else [brancht + std.strReplace(event, '_', '-') + '${DRONE_BUILD_NUMBER}'],
local container_version = branchp + event + '/${DRONE_BUILD_NUMBER}/' + server + '/' + arch,
local server_remote = if (std.endsWith(server, 'enterprise')) then 'https://github.com/mariadb-corporation/MariaDBEnterprise' else 'https://github.com/MariaDB/server',
@ -147,7 +150,8 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
from_secret: 'aws_secret_access_key',
},
source: result,
target: branchp + '/' + eventp + '/' + server + '/' + arch + '/' + result,
// branchp has slash if not empty
target: branchp + eventp + '/' + server + '/' + arch + '/' + result,
delete: 'true',
},
},
@ -256,12 +260,16 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
depends_on: ['smoke'],
image: 'docker:git',
volumes: [pipeline._volumes.docker],
environment: {
MTR_SUITE_LIST: '${MTR_SUITE_LIST:-' + mtr_suite_list + '}',
MTR_FULL_SUITE: '${MTR_FULL_SUITE:-false}',
},
commands: [
'docker run --volume /sys/fs/cgroup:/sys/fs/cgroup:ro --shm-size=500m --env MYSQL_TEST_DIR=' + mtr_path + ' --env DEBIAN_FRONTEND=noninteractive --env MCS_USE_S3_STORAGE=0 --name mtr$${DRONE_BUILD_NUMBER} --ulimit core=-1 --privileged --detach ' + img + ' ' + init + ' --unit=basic.target',
'docker cp ' + result + ' mtr$${DRONE_BUILD_NUMBER}:/',
if (std.split(platform, ':')[0] == 'centos' || std.split(platform, ':')[0] == 'rockylinux') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "yum install -y wget procps-ng"',
if (std.split(platform, ':')[0] == 'centos' || std.split(platform, ':')[0] == 'rockylinux') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "yum install -y wget tar lz4 procps-ng"',
if (pkg_format == 'deb') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} sed -i "s/exit 101/exit 0/g" /usr/sbin/policy-rc.d',
if (pkg_format == 'deb') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "apt update --yes && apt install -y procps wget"',
if (pkg_format == 'deb') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "apt update --yes && apt install -y procps wget tar liblz4-tool"',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} mkdir core',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} chmod 777 core',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} sysctl -w kernel.core_pattern="/core/%E_mtr_core_dump.%p"',
@ -282,6 +290,8 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
'docker exec -t mtr$${DRONE_BUILD_NUMBER} chown -R mysql:mysql ' + mtr_path,
// disable systemd 'ProtectSystem' (we need to write to /usr/share/)
"docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c 'sed -i /ProtectSystem/d $(systemctl show --property FragmentPath mariadb | sed s/FragmentPath=//)'",
if (pkg_format == 'deb') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "echo \"character_set_server=latin1\" >> /etc/mysql/mariadb.conf.d/columnstore.cnf"' else 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "echo \"character_set_server=latin1\" >> /etc/my.cnf.d/columnstore.cnf"',
if (pkg_format == 'deb') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "echo \"collation_server=latin1_swedish_ci\" >> /etc/mysql/mariadb.conf.d/columnstore.cnf"' else 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "echo \"collation_server=latin1_swedish_ci\" >> /etc/my.cnf.d/columnstore.cnf"',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} systemctl daemon-reload',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} systemctl start mariadb',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} mariadb -e "create database if not exists test;"',
@ -292,7 +302,10 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
'docker exec -t mtr$${DRONE_BUILD_NUMBER} systemctl restart mariadb-columnstore',
// delay mtr for manual debugging on live instance
'sleep $${MTR_DELAY_SECONDS:-1s}',
'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "cd ' + mtr_path + ' && ./mtr --extern socket=' + socket_path + ' --force --print-core=detailed --print-method=gdb --max-test-fail=0 --suite=columnstore/basic,columnstore/bugfixes"',
'MTR_SUITE_LIST=$([ "$MTR_FULL_SUITE" == true ] && echo "' + mtr_full_set + '" || echo "$MTR_SUITE_LIST")',
if (event == 'custom' || event == 'cron') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "wget -qO- https://cspkg.s3.amazonaws.com/mtr-test-data.tar.lz4 | lz4 -dc - | tar xf - -C /"',
if (event == 'custom' || event == 'cron') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "cd ' + mtr_path + ' && ./mtr --extern socket=' + socket_path + ' --force --print-core=detailed --print-method=gdb --max-test-fail=0 --suite=columnstore/setup"',
if (event == 'cron') then 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "cd ' + mtr_path + ' && ./mtr --extern socket=' + socket_path + ' --force --print-core=detailed --print-method=gdb --max-test-fail=0 --suite=' + mtr_full_set + '"' else 'docker exec -t mtr$${DRONE_BUILD_NUMBER} bash -c "cd ' + mtr_path + ' && ./mtr --extern socket=' + socket_path + ' --force --print-core=detailed --print-method=gdb --max-test-fail=0 --suite=columnstore/$${MTR_SUITE_LIST//,/,columnstore/}"',
],
},
mtrlog:: {
@ -458,7 +471,8 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
VERSION: container_version,
MCS_REPO: 'columnstore',
DEV: 'true',
MCS_BASEURL: 'https://cspkg.s3.amazonaws.com/' + branchp + '/' + event + '/${DRONE_BUILD_NUMBER}/' + server + '/' + arch + '/' + result + '/',
// branchp has slash if not empty
MCS_BASEURL: 'https://cspkg.s3.amazonaws.com/' + branchp + event + '/${DRONE_BUILD_NUMBER}/' + server + '/' + arch + '/' + result + '/',
CMAPI_REPO: 'cmapi',
CMAPI_BASEURL: 'https://cspkg.s3.amazonaws.com/cmapi/develop/latest/' + arch + '/',
},

View File

@ -0,0 +1 @@
mcs7000_version_buffer : this test used 10Gb database, it's disabled until redesign

View File

@ -0,0 +1,10 @@
mcs6743_json_JSON_TYPE_KnownIssue : Disabled until server fix
mcs6178_windowFunctions_CORR : Disabled because of MCOL-5435
mcs6180_windowFunctions_COVAR_POP : Disabled because of MCOL-5435
mcs6181_windowFunctions_COVAR_SAMP : Disabled because of MCOL-5435
mcs6200_windowFunctions_REGR_INTERCEPT : Disabled because of MCOL-5435
mcs6201_windowFunctions_REGR_R2 : Disabled because of MCOL-5435
mcs6202_windowFunctions_REGR_SLOPE : Disabled because of MCOL-5435
mcs6203_windowFunctions_REGR_SXX : Disabled because of MCOL-5435
mcs6204_windowFunctions_REGR_SXY : Disabled because of MCOL-5435
mcs6205_windowFunctions_REGR_SYY : Disabled because of MCOL-5435

View File

@ -39,7 +39,7 @@ lineitem CREATE TABLE `lineitem` (
`l_shipinstruct` char(25) DEFAULT NULL,
`l_shipmode` char(10) DEFAULT NULL,
`l_comment` varchar(44) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
insert into lineitem values
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),
(10,128449,3474,3,27,39890.88,0.06,0.07,'A','F','1994-01-16','1993-11-22','1994-01-23','DELIVER IN PERSON','SHIP','nal foxes wake.'),

View File

@ -25,7 +25,7 @@ orders CREATE TABLE `orders` (
`o_clerk` char(15) DEFAULT NULL,
`o_shippriority` int(11) DEFAULT NULL,
`o_comment` varchar(79) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
drop table if exists lineitem;
create table lineitem (
l_orderkey int,
@ -64,14 +64,14 @@ lineitem CREATE TABLE `lineitem` (
`l_shipinstruct` char(25) DEFAULT NULL,
`l_shipmode` char(10) DEFAULT NULL,
`l_comment` varchar(44) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
create table if not exists quicktest (c1 int, c2 char(15)) engine=columnstore;
SHOW CREATE TABLE quicktest;
Table Create Table
quicktest CREATE TABLE `quicktest` (
`c1` int(11) DEFAULT NULL,
`c2` char(15) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
insert into quicktest values (1,'Hello');
insert into quicktest values (2,'world');
select * from quicktest;

View File

@ -40,12 +40,30 @@ LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS T
select count(*) from nation where n_regionkey = 2;
count(*)
5
Warnings:
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-7; CacheI/O-7; BlocksTouched-7; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
insert into nation values(25, 'Hawaiian Nation',5,'Hello world');
Warnings:
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-7; CacheI/O-7; BlocksTouched-7; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
update nation set n_regionkey = -1 where n_regionkey = 5;
Warnings:
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-7; CacheI/O-7; BlocksTouched-7; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
insert into nation1 select * from nation;
Warnings:
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-30; CacheI/O-13; BlocksTouched-12; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|';
Warnings:
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-30; CacheI/O-13; BlocksTouched-12; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
delete from nation;
Warnings:
Note 9999 Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-30; CacheI/O-13; BlocksTouched-12; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed
select user, priority, queryType, query from infinidb_querystats.querystats;
user priority queryType query
root LOW LOAD_DATA_INFILE LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|'
root LOW SELECT select count(*) from nation where n_regionkey = 2
root LOW UPDATE update nation set n_regionkey = -1 where n_regionkey = 5
root LOW SELECT insert into nation1 select * from nation
root LOW LOAD_DATA_INFILE LOAD DATA INFILE '/data/qa/source/dbt3/1m/nation.tbl' INTO TABLE nation FIELDS TERMINATED BY '|'
root LOW DELETE delete from nation
DROP USER 'cejuser'@'localhost';
DROP DATABASE mcs4011_db;

View File

@ -8,9 +8,9 @@ cidx CDECIMAL1 COS(CDECIMAL1)
select cidx, CDECIMAL4, COS(CDECIMAL4) from datatypetestm order by cidx;
cidx CDECIMAL4 COS(CDECIMAL4)
1 -999 0.9996498529808264
select cidx, CDECIMAL4_2, COS(CDECIMAL4_2) from datatypetestm order by cidx;
cidx CDECIMAL4_2 COS(CDECIMAL4_2)
1 -9.99 -0.8444696962887724
select cidx, CDECIMAL4_2, TRUNCATE(COS(CDECIMAL4_2), 15) from datatypetestm order by cidx;
cidx CDECIMAL4_2 TRUNCATE(COS(CDECIMAL4_2), 15)
1 -9.99 -0.844469696288772
select cidx, CDECIMAL5, COS(CDECIMAL5) from datatypetestm order by cidx;
cidx CDECIMAL5 COS(CDECIMAL5)
1 -999 0.9996498529808264

View File

@ -1,4 +1,5 @@
USE autopilot;
SET @@session.time_zone = "+00:00";
select cidx, CBIGINT, FROM_UNIXTIME(CBIGINT) from datatypetestm order by cidx;
cidx CBIGINT FROM_UNIXTIME(CBIGINT)
1 -72036854775806 NULL

View File

@ -8,9 +8,9 @@ cidx CDECIMAL1 COS(CDECIMAL1)
select cidx, CDECIMAL4, COS(CDECIMAL4) from datatypetestm order by cidx;
cidx CDECIMAL4 COS(CDECIMAL4)
1 -999 0.9996498529808264
select cidx, CDECIMAL4_2, COS(CDECIMAL4_2) from datatypetestm order by cidx;
cidx CDECIMAL4_2 COS(CDECIMAL4_2)
1 -9.99 -0.8444696962887724
select cidx, CDECIMAL4_2, TRUNCATE(COS(CDECIMAL4_2), 15) from datatypetestm order by cidx;
cidx CDECIMAL4_2 TRUNCATE(COS(CDECIMAL4_2), 15)
1 -9.99 -0.844469696288772
select cidx, CDECIMAL5, COS(CDECIMAL5) from datatypetestm order by cidx;
cidx CDECIMAL5 COS(CDECIMAL5)
1 -999 0.9996498529808264

View File

@ -1,4 +1,5 @@
USE autopilot;
SET @@session.time_zone = "+00:00";
select cidx, CBIGINT, FROM_UNIXTIME(CBIGINT) from datatypetestm order by cidx;
cidx CBIGINT FROM_UNIXTIME(CBIGINT)
1 -72036854775806 NULL

View File

@ -1,4 +1,5 @@
USE autopilot;
SET @@session.time_zone = "+00:00";
select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm order by cidx;
cidx CDATE UNIX_TIMESTAMP(CDATE)
1 1997-01-01 852076800

View File

@ -1,4 +1,5 @@
USE autopilot;
SET @@session.time_zone = "+00:00";
select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm order by cidx;
cidx CDATE UNIX_TIMESTAMP(CDATE)
1 1997-01-01 852076800

View File

@ -11,7 +11,7 @@ USE autopilot;
select cidx, CBIGINT, COS(CBIGINT) from datatypetestm order by cidx;
select cidx, CDECIMAL1, COS(CDECIMAL1) from datatypetestm order by cidx;
select cidx, CDECIMAL4, COS(CDECIMAL4) from datatypetestm order by cidx;
select cidx, CDECIMAL4_2, COS(CDECIMAL4_2) from datatypetestm order by cidx;
select cidx, CDECIMAL4_2, TRUNCATE(COS(CDECIMAL4_2), 15) from datatypetestm order by cidx;
select cidx, CDECIMAL5, COS(CDECIMAL5) from datatypetestm order by cidx;
select cidx, CDECIMAL9, COS(CDECIMAL9) from datatypetestm order by cidx;
select cidx, CDECIMAL9_2, COS(CDECIMAL9_2) from datatypetestm order by cidx;

View File

@ -8,6 +8,7 @@
#
USE autopilot;
#
SET @@session.time_zone = "+00:00";
select cidx, CBIGINT, FROM_UNIXTIME(CBIGINT) from datatypetestm order by cidx;
select cidx, CDECIMAL1, FROM_UNIXTIME(CDECIMAL1) from datatypetestm order by cidx;
select cidx, CDECIMAL4, FROM_UNIXTIME(CDECIMAL4) from datatypetestm order by cidx;

View File

@ -11,7 +11,7 @@ USE autopilot;
select cidx, CBIGINT, COS(CBIGINT) from datatypetestm order by cidx;
select cidx, CDECIMAL1, COS(CDECIMAL1) from datatypetestm order by cidx;
select cidx, CDECIMAL4, COS(CDECIMAL4) from datatypetestm order by cidx;
select cidx, CDECIMAL4_2, COS(CDECIMAL4_2) from datatypetestm order by cidx;
select cidx, CDECIMAL4_2, TRUNCATE(COS(CDECIMAL4_2), 15) from datatypetestm order by cidx;
select cidx, CDECIMAL5, COS(CDECIMAL5) from datatypetestm order by cidx;
select cidx, CDECIMAL9, COS(CDECIMAL9) from datatypetestm order by cidx;
select cidx, CDECIMAL9_2, COS(CDECIMAL9_2) from datatypetestm order by cidx;

View File

@ -8,6 +8,7 @@
#
USE autopilot;
#
SET @@session.time_zone = "+00:00";
select cidx, CBIGINT, FROM_UNIXTIME(CBIGINT) from datatypetestm order by cidx;
select cidx, CDECIMAL1, FROM_UNIXTIME(CDECIMAL1) from datatypetestm order by cidx;
select cidx, CDECIMAL4, FROM_UNIXTIME(CDECIMAL4) from datatypetestm order by cidx;

View File

@ -8,6 +8,7 @@
#
USE autopilot;
#
SET @@session.time_zone = "+00:00";
select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm order by cidx;
select cidx, CDATETIME, UNIX_TIMESTAMP(CDATETIME) from datatypetestm order by cidx;
--replace_column 3 REPLACEDVALUE

View File

@ -8,6 +8,7 @@
#
USE autopilot;
#
SET @@session.time_zone = "+00:00";
select cidx, CDATE, UNIX_TIMESTAMP(CDATE) from datatypetestm order by cidx;
select cidx, CDATETIME, UNIX_TIMESTAMP(CDATETIME) from datatypetestm order by cidx;
--replace_column 3 REPLACEDVALUE

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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, CORR(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(CORR(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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, COVAR_POP(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_POP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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, COVAR_SAMP(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(COVAR_SAMP(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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, REGR_INTERCEPT(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_INTERCEPT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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, REGR_R2(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_R2(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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, REGR_SLOPE(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SLOPE(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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, REGR_SXX(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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, REGR_SXY(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SXY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -8,251 +8,499 @@
#
use tpch1m;
#
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ) from orders order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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, REGR_SYY(o_custkey,o_orderkey) 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;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from orders order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY 55 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY o_custkey ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey) ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS UNBOUNDED PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN UNBOUNDED PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN CURRENT ROW AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND UNBOUNDED FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND CURRENT ROW), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
sorted_result;
select o_custkey, TRUNCATE(REGR_SYY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING), 12) from (select * from orders where o_custkey <= 20000) s order by 1, 2;

View File

@ -0,0 +1,15 @@
mcs7035_regression_bug2976 : Different table settings on different architectures
mcs7126_regression_bug3853 : Different table settings on different architectures
mcs7157_regression_bug4757 : Different table settings on different architectures
mcs7159_regression_bug4827 : Different table settings on different architectures
mcs7171_regression_bug5229 : Different table settings on different architectures
mcs7174_regression_bug5286 : Different table settings on different architectures
mcs7202_regression_MCOL-1535 : Different table settings on different architectures
mcs7245_regression_bug2977 : Different table settings on different architectures
mcs7247_regression_bug3038b : Different table settings on different architectures
mcs7248_regression_bug3038c : Different table settings on different architectures
mcs7250_regression_bug4594 : Different table settings on different architectures
mcs7255_regression_MCOL-673 : Different table settings on different architectures
mcs7631_q111 : Different table settings on different architectures
mcs7632_q112 : Different table settings on different architectures
mcs7633_q113 : Different table settings on different architectures

View File

@ -1,7 +1,5 @@
USE tpch1;
drop table if exists bug3483;
Warnings:
Note 1051 Unknown table 'tpch1.bug3483'
create table bug3483 (c1 bigint, c2 decimal(18,2), c3 float, c4 double, c5 char(120), c6 varchar(120)) engine=columnstore;
insert into bug3483 values
(1, 1.1, 1.1, 1.1, '1.1', '1.1'),
@ -64,26 +62,26 @@ c5 ceil(c5) ceiling(c5) floor(c5) truncate(c5, 2)
1234567890.1 1234567891 1234567891 1234567890 1234567890.09
1234567890.8 1234567891 1234567891 1234567890 1234567890.80
1.2345678901e10 12345678901 12345678901 12345678901 12345678901.00
12345678901234567890 12345678901234567000 12345678901234567000 12345678901234567000 -92233720368547760.00
12345678901234567890123456789012345678901234567890 12345678901234567000000000000000000000000000000000 12345678901234567000000000000000000000000000000000 12345678901234567000000000000000000000000000000000 -92233720368547760.00
12345678901234567890 12345678901234567000 12345678901234567000 12345678901234567000 12345678901234567000.00
12345678901234567890123456789012345678901234567890 12345678901234567000000000000000000000000000000000 12345678901234567000000000000000000000000000000000 12345678901234567000000000000000000000000000000000 12345678901234567000000000000000000000000000000000.00
-1.1 -1 -1 -2 -1.10
-1234567890.1 -1234567890 -1234567890 -1234567891 -1234567890.09
-1234567890.8 -1234567890 -1234567890 -1234567891 -1234567890.80
-1.2345678901e10 -12345678901 -12345678901 -12345678901 -12345678901.00
-12345678901234567890 -12345678901234567000 -12345678901234567000 -12345678901234567000 -92233720368547760.00
-12345678901234567890123456789012345678901234567890 -12345678901234567000000000000000000000000000000000 -12345678901234567000000000000000000000000000000000 -12345678901234567000000000000000000000000000000000 -92233720368547760.00
-12345678901234567890 -12345678901234567000 -12345678901234567000 -12345678901234567000 -12345678901234567000.00
-12345678901234567890123456789012345678901234567890 -12345678901234567000000000000000000000000000000000 -12345678901234567000000000000000000000000000000000 -12345678901234567000000000000000000000000000000000 -12345678901234567000000000000000000000000000000000.00
select c6, ceil(c6), ceiling(c6), floor(c6), truncate(c6, 2) from bug3483;
c6 ceil(c6) ceiling(c6) floor(c6) truncate(c6, 2)
1.1 2 2 1 1.10
1234567890.1 1234567891 1234567891 1234567890 1234567890.09
1234567890.8 1234567891 1234567891 1234567890 1234567890.80
1.2345678901e10 12345678901 12345678901 12345678901 12345678901.00
12345678901234567890 12345678901234567000 12345678901234567000 12345678901234567000 -92233720368547760.00
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -92233720368547760.00
12345678901234567890 12345678901234567000 12345678901234567000 12345678901234567000 12345678901234567000.00
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000.00
-1.1 -1 -1 -2 -1.10
-1234567890.1 -1234567890 -1234567890 -1234567891 -1234567890.09
-1234567890.8 -1234567890 -1234567890 -1234567891 -1234567890.80
-1.2345678901e10 -12345678901 -12345678901 -12345678901 -12345678901.00
-12345678901234567890 -12345678901234567000 -12345678901234567000 -12345678901234567000 -92233720368547760.00
-1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -92233720368547760.00
-12345678901234567890 -12345678901234567000 -12345678901234567000 -12345678901234567000 -12345678901234567000.00
-1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000 -1234567890123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000.00
drop table bug3483;

View File

@ -620,18 +620,18 @@ avg(d131) min(d131) max(d131) avg2 min2 max2
select avg(d132), min(d132), max(d132), (100/1000000) * avg(d132) avg2, 0.0001 * min(d132) min2, max(d132)/10000 max2 from dtypes;
avg(d132) min(d132) max(d132) avg2 min2 max2
191.9727363410021500 -999.999999999999 999.999999999999 0.01919727363410021500 -0.0999999999999999 0.0999999999999999
select avg(d133), min(d133), max(d133), (100/1000000) * avg(d133) avg2, 0.0001 * min(d133) min2, max(d133)/10000 max2 from dtypes;
avg(d133) min(d133) max(d133) avg2 min2 max2
31.27990634100227201 -99.9999999999999 99.9999999999999 0.003127990634100227201 -0.00999999999999999 0.00999999999999999
select avg(d134), min(d134), max(d134), (100/1000000) * avg(d134) avg2, 0.0001 * min(d134) min2, max(d134)/10000 max2 from dtypes;
avg(d134) min(d134) max(d134) avg2 min2 max2
4.061669341002296601 -9.99999999999999 9.99999999999999 0.0004061669341002296601 -0.000999999999999999 0.000999999999999999
select avg(d135), min(d135), max(d135), (100/1000000) * avg(d135) avg2, 0.0001 * min(d135) min2, max(d135)/10000 max2 from dtypes;
avg(d135) min(d135) max(d135) avg2 min2 max2
0.5711782763422995403 -0.999999999999999 0.999999999999999 0.00005711782763422995403 -0.0000999999999999999 0.0000999999999999999
select avg(d136), min(d136), max(d136), (100/1000000) * avg(d136) avg2, 0.0001 * min(d136) min2, max(d136)/10000 max2 from dtypes;
avg(d136) min(d136) max(d136) avg2 min2 max2
451548.7900 -2233 5860521 45.15487900 -0.2233 586.0521
select truncate(avg(d133), 10), min(d133), max(d133), truncate((100/1000000) * avg(d133), 10) avg2, 0.0001 * min(d133) min2, max(d133)/10000 max2 from dtypes;
truncate(avg(d133), 10) min(d133) max(d133) avg2 min2 max2
31.2799063410 -99.9999999999999 99.9999999999999 0.0031279906 -0.00999999999999999 0.00999999999999999
select truncate(avg(d134), 10), min(d134), max(d134), truncate((100/1000000) * avg(d134), 10) avg2, 0.0001 * min(d134) min2, max(d134)/10000 max2 from dtypes;
truncate(avg(d134), 10) min(d134) max(d134) avg2 min2 max2
4.0616693410 -9.99999999999999 9.99999999999999 0.0004061669 -0.000999999999999999 0.000999999999999999
select truncate(avg(d135), 10), min(d135), max(d135), truncate((100/1000000) * avg(d135), 10) avg2, 0.0001 * min(d135) min2, max(d135)/10000 max2 from dtypes;
truncate(avg(d135), 10) min(d135) max(d135) avg2 min2 max2
0.5711782763 -0.999999999999999 0.999999999999999 0.0000571178 -0.0000999999999999999 0.0000999999999999999
select truncate(avg(d136), 10), min(d136), max(d136), truncate((100/1000000) * avg(d136), 10) avg2, 0.0001 * min(d136) min2, max(d136)/10000 max2 from dtypes;
truncate(avg(d136), 10) min(d136) max(d136) avg2 min2 max2
451548.7900000000 -2233 5860521 45.1548790000 -0.2233 586.0521
select avg(d137), min(d137), max(d137), (100/1000000) * avg(d137) avg2, 0.0001 * min(d137) min2, max(d137)/10000 max2 from dtypes;
avg(d137) min(d137) max(d137) avg2 min2 max2
451548.78300 -2233.0 5860520.6 45.154878300 -0.22330 586.05206
@ -656,21 +656,21 @@ avg(d143) min(d143) max(d143) avg2 min2 max2
select avg(d144), min(d144), max(d144), (100/1000000) * avg(d144) avg2, 0.0001 * min(d144) min2, max(d144)/10000 max2 from dtypes;
avg(d144) min(d144) max(d144) avg2 min2 max2
451548.786397185200 -2233.00000000 5860520.59916300 45.1548786397185200 -0.223300000000 586.052059916300
select avg(d145), min(d145), max(d145), (100/1000000) * avg(d145) avg2, 0.0001 * min(d145) min2, max(d145)/10000 max2 from dtypes;
avg(d145) min(d145) max(d145) avg2 min2 max2
451548.7863971853299 -2233.000000000 5860520.599163000 45.15487863971853299 -0.2233000000000 586.0520599163000
select avg(d160), min(d160), max(d160), (100/1000000) * avg(d160) avg2, 0.0001 * min(d160) min2, max(d160)/10000 max2 from dtypes;
avg(d160) min(d160) max(d160) avg2 min2 max2
451548.78639718400 -2233.0000000 5860520.5991630 45.154878639718400 -0.22330000000 586.05205991630
select truncate(avg(d145), 10), min(d145), max(d145), truncate((100/1000000) * avg(d145), 10) avg2, 0.0001 * min(d145) min2, max(d145)/10000 max2 from dtypes;
truncate(avg(d145), 10) min(d145) max(d145) avg2 min2 max2
451548.7863971853 -2233.000000000 5860520.599163000 45.1548786397 -0.2233000000000 586.0520599163000
select truncate(avg(d160), 10), min(d160), max(d160), truncate((100/1000000) * avg(d160), 10) avg2, 0.0001 * min(d160) min2, max(d160)/10000 max2 from dtypes;
truncate(avg(d160), 10) min(d160) max(d160) avg2 min2 max2
451548.7863971839 -2233.0000000 5860520.5991630 45.1548786397 -0.22330000000 586.05205991630
select avg(d161), min(d161), max(d161), (100/1000000) * avg(d161) avg2, 0.0001 * min(d161) min2, max(d161)/10000 max2 from dtypes;
avg(d161) min(d161) max(d161) avg2 min2 max2
451548.786397185200 -2233.00000000 5860520.59916300 45.1548786397185200 -0.223300000000 586.052059916300
select avg(d162), min(d162), max(d162), (100/1000000) * avg(d162) avg2, 0.0001 * min(d162) min2, max(d162)/10000 max2 from dtypes;
avg(d162) min(d162) max(d162) avg2 min2 max2
451548.7863971853299 -2233.000000000 5860520.599163000 45.15487863971853299 -0.2233000000000 586.0520599163000
select avg(d171), min(d171), max(d171), (100/1000000) * avg(d171) avg2, 0.0001 * min(d171) min2, max(d171)/10000 max2 from dtypes;
avg(d171) min(d171) max(d171) avg2 min2 max2
451548.7900 -2233 5860521 45.15487900 -0.2233 586.0521
select truncate(avg(d162), 10), min(d162), max(d162), truncate((100/1000000) * avg(d162), 10) avg2, 0.0001 * min(d162) min2, max(d162)/10000 max2 from dtypes;
truncate(avg(d162), 10) min(d162) max(d162) avg2 min2 max2
451548.7863971853 -2233.000000000 5860520.599163000 45.1548786397 -0.2233000000000 586.0520599163000
select truncate(avg(d171), 10), min(d171), max(d171), truncate((100/1000000) * avg(d171), 10) avg2, 0.0001 * min(d171) min2, max(d171)/10000 max2 from dtypes;
truncate(avg(d171), 10) min(d171) max(d171) avg2 min2 max2
451548.7900000000 -2233 5860521 45.1548790000 -0.2233 586.0521
select avg(d172), min(d172), max(d172), (100/1000000) * avg(d172) avg2, 0.0001 * min(d172) min2, max(d172)/10000 max2 from dtypes;
avg(d172) min(d172) max(d172) avg2 min2 max2
451548.78300 -2233.0 5860520.6 45.154878300 -0.22330 586.05206
@ -695,6 +695,6 @@ avg(d178) min(d178) max(d178) avg2 min2 max2
select avg(d179), min(d179), max(d179), (100/1000000) * avg(d179) avg2, 0.0001 * min(d179) min2, max(d179)/10000 max2 from dtypes;
avg(d179) min(d179) max(d179) avg2 min2 max2
451548.786397185200 -2233.00000000 5860520.59916300 45.1548786397185200 -0.223300000000 586.052059916300
select avg(d180), min(d180), max(d180), (100/1000000) * avg(d180) avg2, 0.0001 * min(d180) min2, max(d180)/10000 max2 from dtypes;
avg(d180) min(d180) max(d180) avg2 min2 max2
451548.7863971853299 -2233.000000000 5860520.599163000 45.15487863971853299 -0.2233000000000 586.0520599163000
select truncate(avg(d180), 10), min(d180), max(d180), truncate((100/1000000) * avg(d180), 10) avg2, 0.0001 * min(d180) min2, max(d180)/10000 max2 from dtypes;
truncate(avg(d180), 10) min(d180) max(d180) avg2 min2 max2
451548.7863971853 -2233.000000000 5860520.599163000 45.1548786397 -0.2233000000000 586.0520599163000

View File

@ -3,18 +3,18 @@ set columnstore_double_for_decimal_math = 1;
drop table if exists `p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess`;
create table `p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess` ( `session_duration` decimal(13,3) not null,`session_idle_down_duration` decimal(13,3) not null, `session_q5_down` int(11) not null ) engine=columnstore default charset=latin1;
insert into p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess values (1032632.1 , 86382, 1273564557);
select session_duration as session_duration, session_idle_down_duration as session_idle_down_duration, session_q5_down as session_q5_down, session_duration*session_q5_down as result_1, (session_duration*session_q5_down)*8 as result_2, (1032632.1*1273564557)*8 as result_3 from p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess t1;
select session_duration as session_duration, session_idle_down_duration as session_idle_down_duration, session_q5_down as session_q5_down, truncate(session_duration*session_q5_down, 2) as result_1, truncate((session_duration*session_q5_down)*8, 2) as result_2, (1032632.1*1273564557)*8 as result_3 from p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess t1;
session_duration session_idle_down_duration session_q5_down result_1 result_2 result_3
1032632.100 86382.000 1273564557 1315123642980479.700 10520989143843837.601 10520989143843837.6
1032632.100 86382.000 1273564557 1315123642980479.70 10520989143843837.60 10520989143843837.6
drop table if exists bug2437;
create table bug2437 (col1 decimal(6,4)) engine=columnstore;
insert into bug2437 values (10.0001);
select col1*2.0002*2.0000002*0.999999999999 from bug2437;
col1*2.0002*2.0000002*0.999999999999
40.004404040399999601000000000
select col1*4.00040040003599959959996 from bug2437;
col1*4.00040040003599959959996
40.004404040399999597000000000
select truncate(col1*2.0002*2.0000002*0.999999999999, 9) from bug2437;
truncate(col1*2.0002*2.0000002*0.999999999999, 9)
40.004404040
select truncate(col1*4.00040040003599959959996, 9) from bug2437;
truncate(col1*4.00040040003599959959996, 9)
40.004404040
select (count(*)/72143371)*100,(6001215/72143371)*100,(count(*)*100)/72143371,(6001215*100)/72143371 from lineitem;
(count(*)/72143371)*100 (6001215/72143371)*100 (count(*)*100)/72143371 (6001215*100)/72143371
8.3185 8.3185 8.3185 8.3185

View File

@ -149,10 +149,10 @@ select avg(d129), min(d129), max(d129), (100/1000000) * avg(d129) avg2, 0.0001 *
select avg(d130), min(d130), max(d130), (100/1000000) * avg(d130) avg2, 0.0001 * min(d130) min2, max(d130)/10000 max2 from dtypes;
select avg(d131), min(d131), max(d131), (100/1000000) * avg(d131) avg2, 0.0001 * min(d131) min2, max(d131)/10000 max2 from dtypes;
select avg(d132), min(d132), max(d132), (100/1000000) * avg(d132) avg2, 0.0001 * min(d132) min2, max(d132)/10000 max2 from dtypes;
select avg(d133), min(d133), max(d133), (100/1000000) * avg(d133) avg2, 0.0001 * min(d133) min2, max(d133)/10000 max2 from dtypes;
select avg(d134), min(d134), max(d134), (100/1000000) * avg(d134) avg2, 0.0001 * min(d134) min2, max(d134)/10000 max2 from dtypes;
select avg(d135), min(d135), max(d135), (100/1000000) * avg(d135) avg2, 0.0001 * min(d135) min2, max(d135)/10000 max2 from dtypes;
select avg(d136), min(d136), max(d136), (100/1000000) * avg(d136) avg2, 0.0001 * min(d136) min2, max(d136)/10000 max2 from dtypes;
select truncate(avg(d133), 10), min(d133), max(d133), truncate((100/1000000) * avg(d133), 10) avg2, 0.0001 * min(d133) min2, max(d133)/10000 max2 from dtypes;
select truncate(avg(d134), 10), min(d134), max(d134), truncate((100/1000000) * avg(d134), 10) avg2, 0.0001 * min(d134) min2, max(d134)/10000 max2 from dtypes;
select truncate(avg(d135), 10), min(d135), max(d135), truncate((100/1000000) * avg(d135), 10) avg2, 0.0001 * min(d135) min2, max(d135)/10000 max2 from dtypes;
select truncate(avg(d136), 10), min(d136), max(d136), truncate((100/1000000) * avg(d136), 10) avg2, 0.0001 * min(d136) min2, max(d136)/10000 max2 from dtypes;
select avg(d137), min(d137), max(d137), (100/1000000) * avg(d137) avg2, 0.0001 * min(d137) min2, max(d137)/10000 max2 from dtypes;
select avg(d138), min(d138), max(d138), (100/1000000) * avg(d138) avg2, 0.0001 * min(d138) min2, max(d138)/10000 max2 from dtypes;
select avg(d139), min(d139), max(d139), (100/1000000) * avg(d139) avg2, 0.0001 * min(d139) min2, max(d139)/10000 max2 from dtypes;
@ -161,11 +161,11 @@ select avg(d141), min(d141), max(d141), (100/1000000) * avg(d141) avg2, 0.0001 *
select avg(d142), min(d142), max(d142), (100/1000000) * avg(d142) avg2, 0.0001 * min(d142) min2, max(d142)/10000 max2 from dtypes;
select avg(d143), min(d143), max(d143), (100/1000000) * avg(d143) avg2, 0.0001 * min(d143) min2, max(d143)/10000 max2 from dtypes;
select avg(d144), min(d144), max(d144), (100/1000000) * avg(d144) avg2, 0.0001 * min(d144) min2, max(d144)/10000 max2 from dtypes;
select avg(d145), min(d145), max(d145), (100/1000000) * avg(d145) avg2, 0.0001 * min(d145) min2, max(d145)/10000 max2 from dtypes;
select avg(d160), min(d160), max(d160), (100/1000000) * avg(d160) avg2, 0.0001 * min(d160) min2, max(d160)/10000 max2 from dtypes;
select truncate(avg(d145), 10), min(d145), max(d145), truncate((100/1000000) * avg(d145), 10) avg2, 0.0001 * min(d145) min2, max(d145)/10000 max2 from dtypes;
select truncate(avg(d160), 10), min(d160), max(d160), truncate((100/1000000) * avg(d160), 10) avg2, 0.0001 * min(d160) min2, max(d160)/10000 max2 from dtypes;
select avg(d161), min(d161), max(d161), (100/1000000) * avg(d161) avg2, 0.0001 * min(d161) min2, max(d161)/10000 max2 from dtypes;
select avg(d162), min(d162), max(d162), (100/1000000) * avg(d162) avg2, 0.0001 * min(d162) min2, max(d162)/10000 max2 from dtypes;
select avg(d171), min(d171), max(d171), (100/1000000) * avg(d171) avg2, 0.0001 * min(d171) min2, max(d171)/10000 max2 from dtypes;
select truncate(avg(d162), 10), min(d162), max(d162), truncate((100/1000000) * avg(d162), 10) avg2, 0.0001 * min(d162) min2, max(d162)/10000 max2 from dtypes;
select truncate(avg(d171), 10), min(d171), max(d171), truncate((100/1000000) * avg(d171), 10) avg2, 0.0001 * min(d171) min2, max(d171)/10000 max2 from dtypes;
select avg(d172), min(d172), max(d172), (100/1000000) * avg(d172) avg2, 0.0001 * min(d172) min2, max(d172)/10000 max2 from dtypes;
select avg(d173), min(d173), max(d173), (100/1000000) * avg(d173) avg2, 0.0001 * min(d173) min2, max(d173)/10000 max2 from dtypes;
select avg(d174), min(d174), max(d174), (100/1000000) * avg(d174) avg2, 0.0001 * min(d174) min2, max(d174)/10000 max2 from dtypes;
@ -174,6 +174,6 @@ select avg(d176), min(d176), max(d176), (100/1000000) * avg(d176) avg2, 0.0001 *
select avg(d177), min(d177), max(d177), (100/1000000) * avg(d177) avg2, 0.0001 * min(d177) min2, max(d177)/10000 max2 from dtypes;
select avg(d178), min(d178), max(d178), (100/1000000) * avg(d178) avg2, 0.0001 * min(d178) min2, max(d178)/10000 max2 from dtypes;
select avg(d179), min(d179), max(d179), (100/1000000) * avg(d179) avg2, 0.0001 * min(d179) min2, max(d179)/10000 max2 from dtypes;
select avg(d180), min(d180), max(d180), (100/1000000) * avg(d180) avg2, 0.0001 * min(d180) min2, max(d180)/10000 max2 from dtypes;
select truncate(avg(d180), 10), min(d180), max(d180), truncate((100/1000000) * avg(d180), 10) avg2, 0.0001 * min(d180) min2, max(d180)/10000 max2 from dtypes;
#

View File

@ -18,7 +18,7 @@ drop table if exists `p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess`;
create table `p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess` ( `session_duration` decimal(13,3) not null,`session_idle_down_duration` decimal(13,3) not null, `session_q5_down` int(11) not null ) engine=columnstore default charset=latin1;
insert into p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess values (1032632.1 , 86382, 1273564557);
select session_duration as session_duration, session_idle_down_duration as session_idle_down_duration, session_q5_down as session_q5_down, session_duration*session_q5_down as result_1, (session_duration*session_q5_down)*8 as result_2, (1032632.1*1273564557)*8 as result_3 from p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess t1;
select session_duration as session_duration, session_idle_down_duration as session_idle_down_duration, session_q5_down as session_q5_down, truncate(session_duration*session_q5_down, 2) as result_1, truncate((session_duration*session_q5_down)*8, 2) as result_2, (1032632.1*1273564557)*8 as result_3 from p2_loaded_uh_p_xml_fsc_2x_for_agg_201310_valid_sess t1;
#-- bug2437
--disable_warnings
@ -26,8 +26,8 @@ drop table if exists bug2437;
--enable_warnings
create table bug2437 (col1 decimal(6,4)) engine=columnstore;
insert into bug2437 values (10.0001);
select col1*2.0002*2.0000002*0.999999999999 from bug2437;
select col1*4.00040040003599959959996 from bug2437;
select truncate(col1*2.0002*2.0000002*0.999999999999, 9) from bug2437;
select truncate(col1*4.00040040003599959959996, 9) from bug2437;
#-- bug5697
select (count(*)/72143371)*100,(6001215/72143371)*100,(count(*)*100)/72143371,(6001215*100)/72143371 from lineitem;

View File

@ -0,0 +1 @@
mcs7001_update_100mil_rows : this test used 10Gb database, it's disabled until redesign

View File

@ -0,0 +1 @@
func_concat_oracle : Different table settings on different architectures

View File

@ -67,7 +67,8 @@ USE outerjoin;
--source ../include/autopilot_create_outerjoin_tables.inc
#
# Set table name to case insensitive
--exec sed -i 's/\[mysqld\]/\[mysqld\]\nlower_case_table_names=1/g' /etc/my.cnf.d/server.cnf
--exec if test -f /etc/my.cnf.d/server.cnf; then sed -i 's/\[mysqld\]/\[mysqld\]\nlower_case_table_names=1/g' /etc/my.cnf.d/server.cnf; fi
--exec if test -f etc/mysql/mariadb.conf.d/50.server.cnf; then sed -i 's/\[mysqld\]/\[mysqld\]\nlower_case_table_names=1/g' /etc/mysql/mariadb.conf.d/50-server.cnf; fi
#
SET GLOBAL columnstore_use_import_for_batchinsert=ON;
#

16
tests/scripts/fullmtr.sh Normal file
View File

@ -0,0 +1,16 @@
CURRENT_DIR=`pwd`
mysql -e "create database if not exists test;"
SOCKET=`mysql -e "show variables like 'socket';" | grep socket | cut -f2`
cd /usr/share/mysql/mysql-test
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/setup
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/basic | tee $CURRENT_DIR/mtr.basic.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/bugfixes | tee $CURRENT_DIR/mtr.bugfixes.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/devregression | tee $CURRENT_DIR/mtr.devregression.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/autopilot | tee $CURRENT_DIR/mtr.autopilot.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/extended | tee $CURRENT_DIR/mtr.extended.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/multinode | tee $CURRENT_DIR/mtr.multinode.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/oracle | tee $CURRENT_DIR/mtr.multinode.log 2>&1
./mtr --force --max-test-fail=0 --testcase-timeout=60 --extern socket=$SOCKET --suite=columnstore/1pmonly | tee $CURRENT_DIR/mtr.1pmonly.log 2>&1
cd -