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 round(date, 'day',50), sum(core)+2 from AGGREGATION_TABLE where (CORE<10 or CORE>90) group by round(date, 'day',50), host
|
select count(1) from AGGREGATION_TABLE group by HOST
|
select count(*) from AGGREGATION_TABLE
|
select core, host, sum(ACTIVE_VISITOR) from AGGREGATION_TABLE group by core, host
|
select core, count(1) from AGGREGATION_TABLE group by CORE
|
select MIN(CORE) from AGGREGATION_TABLE group by DOMAIN
|
select AVG(DB), MIN(CORE), MAX(ACTIVE_VISITOR) from AGGREGATION_TABLE where host='CS' and DOMAIN<>'Google.com'
|
LOAD DATA [10000000 ROWS]
|
select count(1) from IN_LIKE_TABLE where K1 in ('Z', 'D', 'F', 'X')
| 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 * 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%'
|
LOAD DATA [10000000 ROWS]
|
select sum(a),sum(e),sum(j),sum(n) from CF_TABLE_14CF group by K1
| select count(1) from CF_TABLE_14CF where K1 in ('A', 'B', 'C', 'D')
|
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)
|
LOAD DATA [10000000 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 [10000000 ROWS]
|
select sum(a),sum(e),sum(j),sum(n) from CF_TABLE_1CF group by K1
| select count(1) from CF_TABLE_1CF where K1 in ('A', 'B', 'C', 'D')
|
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
|
LOAD DATA [10000000 ROWS]
|