-------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:20:58 | +---------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:20:58 | +---------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.23 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1992-06-09' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 13374 | 2015742985.04 | 9981.571087 | | 1 | 13434 | 2037647627.34 | 9981.732905 | | 2 | 13578 | 2075656930.08 | 9981.525823 | | 3 | 13577 | 2055050782.16 | 9981.611529 | | 4 | 13568 | 2052455323.30 | 9981.404843 | +-------------+----------+---------------+----------------+ 5 rows in set (10.19 sec) -------------- select calgetstats() -------------- +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-517239; CacheI/O-621392; BlocksTouched-622393; PartitionBlocksEliminated-675241; MsgBytesIn-6MB; MsgBytesOut-0MB; Mode-Distributed| 1271838058 785635 | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:21:08 | +---------------------+ 1 row in set (0.00 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1992-06-09' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 13374 | 2015742985.04 | 9981.571087 | | 1 | 13434 | 2037647627.34 | 9981.732905 | | 2 | 13578 | 2075656930.08 | 9981.525823 | | 3 | 13577 | 2055050782.16 | 9981.611529 | | 4 | 13568 | 2052455323.30 | 9981.404843 | +-------------+----------+---------------+----------------+ 5 rows in set (3.98 sec) -------------- select calgetstats() -------------- +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-622393; BlocksTouched-622393; PartitionBlocksEliminated-675241; MsgBytesIn-6MB; MsgBytesOut-0MB; Mode-Distributed| 1271838068 732839 | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.07 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1992-11-16' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 26815 | 4047364946.86 | 9981.577296 | | 1 | 26609 | 4026659290.27 | 9981.821061 | | 2 | 26942 | 4068455681.90 | 9981.494539 | | 3 | 27167 | 4108170816.22 | 9981.486940 | | 4 | 27181 | 4107380349.18 | 9981.454862 | +-------------+----------+---------------+----------------+ 5 rows in set (11.50 sec) -------------- select calgetstats() -------------- +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-702071; CacheI/O-807598; BlocksTouched-808908; PartitionBlocksEliminated-630185; MsgBytesIn-9MB; MsgBytesOut-0MB; Mode-Distributed| 1271838072 766160 | +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:21:24 | +---------------------+ 1 row in set (0.00 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1992-11-16' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 26815 | 4047364946.86 | 9981.577296 | | 1 | 26609 | 4026659290.27 | 9981.821061 | | 2 | 26942 | 4068455681.90 | 9981.494539 | | 3 | 27167 | 4108170816.22 | 9981.486940 | | 4 | 27181 | 4107380349.18 | 9981.454862 | +-------------+----------+---------------+----------------+ 5 rows in set (6.33 sec) -------------- select calgetstats() -------------- +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-808908; BlocksTouched-808908; PartitionBlocksEliminated-630185; MsgBytesIn-9MB; MsgBytesOut-0MB; Mode-Distributed| 1271838084 297030 | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.07 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1993-04-26' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 40363 | 6087506487.34 | 9981.563651 | | 1 | 40021 | 6046518401.59 | 9981.764336 | | 2 | 40416 | 6088193351.98 | 9981.480706 | | 3 | 40686 | 6139117256.71 | 9981.438011 | | 4 | 40889 | 6162130875.74 | 9981.462418 | +-------------+----------+---------------+----------------+ 5 rows in set (14.49 sec) -------------- select calgetstats() -------------- +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-888439; CacheI/O-994785; BlocksTouched-996417; PartitionBlocksEliminated-581033; MsgBytesIn-11MB; MsgBytesOut-0MB; Mode-Distributed| 1271838090 681696 | +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:21:45 | +---------------------+ 1 row in set (0.00 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1993-04-26' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 40363 | 6087506487.34 | 9981.563651 | | 1 | 40021 | 6046518401.59 | 9981.764336 | | 2 | 40416 | 6088193351.98 | 9981.480706 | | 3 | 40686 | 6139117256.71 | 9981.438011 | | 4 | 40889 | 6162130875.74 | 9981.462418 | +-------------+----------+---------------+----------------+ 5 rows in set (8.47 sec) -------------- select calgetstats() -------------- +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-996417; BlocksTouched-996417; PartitionBlocksEliminated-581033; MsgBytesIn-11MB; MsgBytesOut-0MB; Mode-Distributed| 1271838105 197308 | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.07 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1993-10-03' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 53636 | 8107136161.16 | 9981.570568 | | 1 | 53258 | 8042727721.74 | 9981.728324 | | 2 | 53719 | 8117814667.00 | 9981.469536 | | 3 | 54095 | 8139553579.37 | 9981.408636 | | 4 | 54341 | 8190064582.35 | 9981.453510 | +-------------+----------+---------------+----------------+ 5 rows in set (17.54 sec) -------------- select calgetstats() -------------- +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-1110135; CacheI/O-1204457; BlocksTouched-1206464; PartitionBlocksEliminated-527785; MsgBytesIn-14MB; MsgBytesOut-0MB; Mode-Distributed| 1271838113 731697 | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:22:11 | +---------------------+ 1 row in set (0.01 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1993-10-03' group by c_nationkey order by 1 -------------- +-------------+----------+---------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+---------------+----------------+ | 0 | 53636 | 8107136161.16 | 9981.570568 | | 1 | 53258 | 8042727721.74 | 9981.728324 | | 2 | 53719 | 8117814667.00 | 9981.469536 | | 3 | 54095 | 8139553579.37 | 9981.408636 | | 4 | 54341 | 8190064582.35 | 9981.453510 | +-------------+----------+---------------+----------------+ 5 rows in set (10.66 sec) -------------- select calgetstats() -------------- +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-1206464; BlocksTouched-1206464; PartitionBlocksEliminated-527785; MsgBytesIn-14MB; MsgBytesOut-0MB; Mode-Distributed| 1271838131 298820 | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select calflushcache() -------------- +-----------------+ | calflushcache() | +-----------------+ | 0 | +-----------------+ 1 row in set (0.09 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1994-03-13' group by c_nationkey order by 1 -------------- +-------------+----------+----------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+----------------+----------------+ | 0 | 67093 | 10108681447.75 | 9981.570033 | | 1 | 66658 | 10064448296.93 | 9981.736589 | | 2 | 67032 | 10143132892.41 | 9981.477465 | | 3 | 67419 | 10147670866.09 | 9981.409912 | | 4 | 67722 | 10223342185.36 | 9981.467578 | +-------------+----------+----------------+----------------+ 5 rows in set (20.21 sec) -------------- select calgetstats() -------------- +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-1297527; CacheI/O-1399797; BlocksTouched-1402082; PartitionBlocksEliminated-478633; MsgBytesIn-16MB; MsgBytesOut-0MB; Mode-Distributed| 1271838142 46097 | +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:22:42 | +---------------------+ 1 row in set (0.00 sec) -------------- select c_nationkey, count(*), sum(o_totalprice) Revenue, avg(c_acctbal) from customer, orders where c_acctbal > 9963 and c_nationkey < 5 and o_custkey = c_custkey and o_orderdate <= '1994-03-13' group by c_nationkey order by 1 -------------- +-------------+----------+----------------+----------------+ | c_nationkey | count(*) | Revenue | avg(c_acctbal) | +-------------+----------+----------------+----------------+ | 0 | 67093 | 10108681447.75 | 9981.570033 | | 1 | 66658 | 10064448296.93 | 9981.736589 | | 2 | 67032 | 10143132892.41 | 9981.477465 | | 3 | 67419 | 10147670866.09 | 9981.409912 | | 4 | 67722 | 10223342185.36 | 9981.467578 | +-------------+----------+----------------+----------------+ 5 rows in set (12.98 sec) -------------- select calgetstats() -------------- +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | calgetstats() | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0MB; ApproxPhyI/O-0; CacheI/O-1402082; BlocksTouched-1402082; PartitionBlocksEliminated-478633; MsgBytesIn-16MB; MsgBytesOut-0MB; Mode-Distributed| 1271838162 284130 | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.01 sec) -------------- select now() -------------- +---------------------+ | now() | +---------------------+ | 2010-04-21 03:22:55 | +---------------------+ 1 row in set (0.00 sec) Bye