select count(*) from AGGREGATION_TABLE |
select count(1) from AGGREGATION_TABLE group by HOST |
select core, count(1) from AGGREGATION_TABLE group by CORE |
select core, host, sum(ACTIVE_VISITOR) from AGGREGATION_TABLE group by core, host |
select AVG(DB), MIN(CORE), MAX(ACTIVE_VISITOR) from AGGREGATION_TABLE where host='CS' and DOMAIN<>'Google.com' |
select round(date, 'day',50), sum(core)+2 from AGGREGATION_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select trunc(date, 'hour', 1000), count(DB), count(ACTIVE_VISITOR) from AGGREGATION_TABLE where feature='Login' and (core<50 or db<20 or active_visitor > 200) group by trunc(date, 'hour', 1000) |
select count(active_visitor) count from AGGREGATION_TABLE |
select count(distinct active_visitor) count from AGGREGATION_TABLE |
select count(core), count(db), count(active_visitor) from AGGREGATION_TABLE |
select core, count(db) count from AGGREGATION_TABLE group by CORE |
select count(core) from AGGREGATION_TABLE where core < 10 and db < 200 |
select count(core) from AGGREGATION_TABLE where core < 10 and active_visitor < 1000 |
select count(core) from AGGREGATION_TABLE where core > 90 |
select count(1) from CF_TABLE_14CF where K1 in ('A', 'B', 'C', 'D') |
select count(1) from CF_TABLE_14CF where K1 in ('A', 'C') |
select count(*) from CF_TABLE_14CF where N < 1000 |
select a,b,c,d,e,f,g,h,i,j,k,l,m,n from CF_TABLE_14CF where (B>1000 and B<2000) and (M>1000 and M<2000) |
select sum(a),sum(e),sum(j),sum(n) from CF_TABLE_14CF group by K1 |
select count(1) from CF_TABLE_1CF where K1 in ('A', 'B', 'C', 'D') |
select count(1) from CF_TABLE_1CF where K1 in ('A', 'C') |
select count(*) from CF_TABLE_1CF where N < 1000 |
select a,b,c,d,e,f,g,h,i,j,k,l,m,n from CF_TABLE_1CF where B>1000 and B<2000 and M>1000 and M<2000 |
select sum(a),sum(e),sum(j),sum(n) from CF_TABLE_1CF group by K1 |
select count(distinct core), count(distinct db), count(distinct active_visitor) from AGGREGATION_TABLE |
select core, count(distinct db) count from AGGREGATION_TABLE group by CORE |
select count(core) from AGGREGATION_TABLE where core IN (1,25,50,75,100) |
select count(1) from IN_LIKE_TABLE where K1 in ('Z', 'D', 'F', 'X') |
select * from IN_LIKE_TABLE where K1 in ('A','B') and K2 in ('xxx1000000','xxx2000000','xxx2000001') |
select * from IN_LIKE_TABLE where K1 in ('A', 'C', 'E', 'F', 'H') and K2 like 'xxxxxx1%' |
select count(*) from IN_LIKE_TABLE where K1 in ('X','A','B','C','D','E','F','G','H','I','Z') and K2 like '%1%' |
select count(*) from IN_LIKE_TABLE where (K1 in ('A','E','F','G','H','I','Z') or K1 like 'E%') and (K2 like '%xx1%' or K2 like '%xxxxxx2%') |
select count(*) from INDEXED_TABLE |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(*) from INDEXED_TABLE |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(*) from INDEXED_TABLE |
select /*+NO_INDEX*/ count(*) from INDEXED_TABLE |
select round(date, 'day',50), sum(core)+2 from INDEXED_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select /*+NO_INDEX*/ round(date, 'day',50), sum(core)+2 from INDEXED_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select count(core) from INDEXED_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(core) from INDEXED_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(core) from INDEXED_TABLE where core IN (1,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core IN (1,100) |
select count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select count(core) from INDEXED_TABLE where core < 100 and db < 2000 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core < 100 and db < 2000 |
select count(core) from INDEXED_TABLE where core > 90 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core > 90 |
select count(core) from INDEXED_TABLE where core > 0 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core > 0 |
select db from INDEXED_TABLE where db >5 and db <7 order by db |
select /*+NO_INDEX*/ db from INDEXED_TABLE where db >5 and db <7 order by db |
select db from INDEXED_TABLE order by db limit 10 |
select /*+NO_INDEX*/ db from INDEXED_TABLE order by db limit 10 |
select count(*) from INDEXED_MUTABLE_TABLE |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(*) from INDEXED_MUTABLE_TABLE |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(*) from INDEXED_MUTABLE_TABLE |
select /*+NO_INDEX*/ count(*) from INDEXED_MUTABLE_TABLE |
select round(date, 'day',50), sum(core)+2 from INDEXED_MUTABLE_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select /*+NO_INDEX*/ round(date, 'day',50), sum(core)+2 from INDEXED_MUTABLE_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select count(core) from INDEXED_MUTABLE_TABLE where core < 100 and db < 2000 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core < 100 and db < 2000 |
select count(core) from INDEXED_MUTABLE_TABLE where core > 90 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core > 90 |
select count(core) from INDEXED_MUTABLE_TABLE where core > 0 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core > 0 |
select db from INDEXED_MUTABLE_TABLE where db >5 and db <7 order by db |
select /*+NO_INDEX*/ db from INDEXED_MUTABLE_TABLE where db >5 and db <7 order by db |
select db from INDEXED_MUTABLE_TABLE order by db limit 10 |
select /*+NO_INDEX*/ db from INDEXED_MUTABLE_TABLE order by db limit 10 |
CREATE INDEX idx5 ON INDEXED_TABLE (CORE) INCLUDE (DB,ACTIVE_VISITOR) |
CREATE INDEX midx5 ON INDEXED_MUTABLE_TABLE (CORE) INCLUDE (DB,ACTIVE_VISITOR) |
LOAD DATA AGGREGATION_TABLE [4000000 ROWS] |
LOAD DATA IN_LIKE_TABLE [4000000 ROWS] |
LOAD DATA INDEXED_TABLE [1000000 ROWS] |
LOAD DATA INDEXED_MUTABLE_TABLE [1000000 ROWS] |
LOAD DATA CF_TABLE_14CF [4000000 ROWS] |
LOAD DATA SALTED_TABLE [4000000 ROWS] |
LOAD DATA CF_TABLE_1CF [4000000 ROWS] |
select percentile_cont(0.9) within group (order by active_visitor asc) from AGGREGATION_TABLE |
select percentile_cont(0.1) within group (order by active_visitor desc) from AGGREGATION_TABLE |
select percentile_cont(0.5) within group (order by core asc), percentile_cont(0.5) within group (order by db asc), percentile_cont(0.5) within group (order by active_visitor asc) from AGGREGATION_TABLE |
select core, percentile_cont(0.9999) within group (order by db asc) from AGGREGATION_TABLE group by CORE |
select count(1) from SALTED_TABLE where K1 in ('A', 'B', 'C', 'D') |
select count(*) from SALTED_TABLE where D < 1000 |
select avg(c),avg(d) from SALTED_TABLE group by K1 |
upsert into CF_TABLE_14CF_UPSERTSELECT select * from CF_TABLE_14CF |
upsert into CF_TABLE_1CF_UPSERTSELECT select * from CF_TABLE_1CF |
select count(*) from AGGREGATION_TABLE |
select count(1) from AGGREGATION_TABLE group by HOST |
select core, count(1) from AGGREGATION_TABLE group by CORE |
select core, host, sum(ACTIVE_VISITOR) from AGGREGATION_TABLE group by core, host |
select AVG(DB), MIN(CORE), MAX(ACTIVE_VISITOR) from AGGREGATION_TABLE where host='CS' and DOMAIN<>'Google.com' |
select round(date, 'day',50), sum(core)+2 from AGGREGATION_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select trunc(date, 'hour', 1000), count(DB), count(ACTIVE_VISITOR) from AGGREGATION_TABLE where feature='Login' and (core<50 or db<20 or active_visitor > 200) group by trunc(date, 'hour', 1000) |
select count(active_visitor) count from AGGREGATION_TABLE |
select count(distinct active_visitor) count from AGGREGATION_TABLE |
select percentile_cont(0.9) within group (order by active_visitor asc) from AGGREGATION_TABLE |
select percentile_cont(0.1) within group (order by active_visitor desc) from AGGREGATION_TABLE |
select count(core), count(db), count(active_visitor) from AGGREGATION_TABLE |
select count(distinct core), count(distinct db), count(distinct active_visitor) from AGGREGATION_TABLE |
select percentile_cont(0.5) within group (order by core asc), percentile_cont(0.5) within group (order by db asc), percentile_cont(0.5) within group (order by active_visitor asc) from AGGREGATION_TABLE |
select core, count(db) count from AGGREGATION_TABLE group by CORE |
select core, count(distinct db) count from AGGREGATION_TABLE group by CORE |
select core, percentile_cont(0.9999) within group (order by db asc) from AGGREGATION_TABLE group by CORE |
select count(core) from AGGREGATION_TABLE where core IN (1,25,50,75,100) |
select count(core) from AGGREGATION_TABLE where core < 10 and db < 200 |
select count(core) from AGGREGATION_TABLE where core < 10 and active_visitor < 1000 |
select count(core) from AGGREGATION_TABLE where core > 90 |
LOAD DATA AGGREGATION_TABLE [4000000 ROWS] |
select count(1) from IN_LIKE_TABLE where K1 in ('Z', 'D', 'F', 'X') |
select * from IN_LIKE_TABLE where K1 in ('A','B') and K2 in ('xxx1000000','xxx2000000','xxx2000001') |
select * from IN_LIKE_TABLE where K1 in ('A', 'C', 'E', 'F', 'H') and K2 like 'xxxxxx1%' |
select count(*) from IN_LIKE_TABLE where K1 in ('X','A','B','C','D','E','F','G','H','I','Z') and K2 like '%1%' |
select count(*) from IN_LIKE_TABLE where (K1 in ('A','E','F','G','H','I','Z') or K1 like 'E%') and (K2 like '%xx1%' or K2 like '%xxxxxx2%') |
LOAD DATA IN_LIKE_TABLE [4000000 ROWS] |
select count(*) from INDEXED_TABLE |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(*) from INDEXED_TABLE |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(*) from INDEXED_TABLE |
select /*+NO_INDEX*/ count(*) from INDEXED_TABLE |
select round(date, 'day',50), sum(core)+2 from INDEXED_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select /*+NO_INDEX*/ round(date, 'day',50), sum(core)+2 from INDEXED_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select count(core) from INDEXED_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(core) from INDEXED_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(core) from INDEXED_TABLE where core IN (1,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core IN (1,100) |
select count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core IN (1,25,50,75,100) |
select count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_TABLE idx1 idx2 idx3 idx4) */ count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_TABLE ids1 ids2 ids3 ids4) */ count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core < 10 and db < 200 |
select count(core) from INDEXED_TABLE where core < 100 and db < 2000 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core < 100 and db < 2000 |
select count(core) from INDEXED_TABLE where core > 90 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core > 90 |
select count(core) from INDEXED_TABLE where core > 0 |
select /*+NO_INDEX*/ count(core) from INDEXED_TABLE where core > 0 |
select db from INDEXED_TABLE where db >5 and db <7 order by db |
select /*+NO_INDEX*/ db from INDEXED_TABLE where db >5 and db <7 order by db |
select db from INDEXED_TABLE order by db limit 10 |
select /*+NO_INDEX*/ db from INDEXED_TABLE order by db limit 10 |
CREATE INDEX idx5 ON INDEXED_TABLE (CORE) INCLUDE (DB,ACTIVE_VISITOR) |
LOAD DATA INDEXED_TABLE [1000000 ROWS] |
select count(*) from INDEXED_MUTABLE_TABLE |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(*) from INDEXED_MUTABLE_TABLE |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(*) from INDEXED_MUTABLE_TABLE |
select /*+NO_INDEX*/ count(*) from INDEXED_MUTABLE_TABLE |
select round(date, 'day',50), sum(core)+2 from INDEXED_MUTABLE_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select /*+NO_INDEX*/ round(date, 'day',50), sum(core)+2 from INDEXED_MUTABLE_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host |
select count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,100) |
select count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core IN (1,25,50,75,100) |
select count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_MUTABLE_TABLE midx1 midx2 midx3 midx4) */ count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select /*+ INDEX(INDEXED_MUTABLE_TABLE mids1 mids2 mids3 mids4) */ count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core < 10 and db < 200 |
select count(core) from INDEXED_MUTABLE_TABLE where core < 100 and db < 2000 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core < 100 and db < 2000 |
select count(core) from INDEXED_MUTABLE_TABLE where core > 90 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core > 90 |
select count(core) from INDEXED_MUTABLE_TABLE where core > 0 |
select /*+NO_INDEX*/ count(core) from INDEXED_MUTABLE_TABLE where core > 0 |
select db from INDEXED_MUTABLE_TABLE where db >5 and db <7 order by db |
select /*+NO_INDEX*/ db from INDEXED_MUTABLE_TABLE where db >5 and db <7 order by db |
select db from INDEXED_MUTABLE_TABLE order by db limit 10 |
select /*+NO_INDEX*/ db from INDEXED_MUTABLE_TABLE order by db limit 10 |
CREATE INDEX midx5 ON INDEXED_MUTABLE_TABLE (CORE) INCLUDE (DB,ACTIVE_VISITOR) |
LOAD DATA INDEXED_MUTABLE_TABLE [1000000 ROWS] |
select count(1) from CF_TABLE_14CF where K1 in ('A', 'B', 'C', 'D') |
select count(1) from CF_TABLE_14CF where K1 in ('A', 'C') |
select count(*) from CF_TABLE_14CF where N < 1000 |
select a,b,c,d,e,f,g,h,i,j,k,l,m,n from CF_TABLE_14CF where (B>1000 and B<2000) and (M>1000 and M<2000) |
select sum(a),sum(e),sum(j),sum(n) from CF_TABLE_14CF group by K1 |
upsert into CF_TABLE_14CF_UPSERTSELECT select * from CF_TABLE_14CF |
LOAD DATA CF_TABLE_14CF [4000000 ROWS] |
select count(1) from SALTED_TABLE where K1 in ('A', 'B', 'C', 'D') |
select count(*) from SALTED_TABLE where D < 1000 |
select avg(c),avg(d) from SALTED_TABLE group by K1 |
LOAD DATA SALTED_TABLE [4000000 ROWS] |
select count(1) from CF_TABLE_1CF where K1 in ('A', 'B', 'C', 'D') |
select count(1) from CF_TABLE_1CF where K1 in ('A', 'C') |
select count(*) from CF_TABLE_1CF where N < 1000 |
select a,b,c,d,e,f,g,h,i,j,k,l,m,n from CF_TABLE_1CF where B>1000 and B<2000 and M>1000 and M<2000 |
select sum(a),sum(e),sum(j),sum(n) from CF_TABLE_1CF group by K1 |
upsert into CF_TABLE_1CF_UPSERTSELECT select * from CF_TABLE_1CF |
LOAD DATA CF_TABLE_1CF [4000000 ROWS] |