core reorg
[csql.git] / test / sql / Aggregate / alldatatype_aggregate_sum.sql
blob80b16a9c07a20d77724768825fc15d51232cfb58
1 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
2 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
3 echo select f2,f1,f4,f3,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
4 select f2,f1,f4,f3,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
5 echo select f3,f1,f4,f2,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
6 select f3,f1,f4,f2,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
7 echo select f4,f3,f2,f1,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
8 select f4,f3,f2,f1,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4;
9 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4 having sum(f5)>=5000;
10 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 group by f1,f2,f3,f4 having sum(f5)>=5000;
12 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
13 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
14 echo select f4,f3,f1,f2,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
15 select f4,f3,f1,f2,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
16 echo select f4,f1,f2,f3,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
17 select f4,f1,f2,f3,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
18 echo select f4,f3,f1,f2,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
19 select f4,f3,f1,f2,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 group by f1,f2,f3,f4;
21 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4;
22 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4;
23 echo select f2,f3,f4,f1,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4;
24 select f2,f3,f4,f1,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4;
25 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4;
26 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4;
27 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4 having sum(f5)>=4000 and sum(f5)<6000;
28 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f1<15 group by f1,f2,f3,f4 having sum(f5)>=4000 and sum(f5)<6000;
29 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f2<=130 group by f1,f2,f3,f4;
30 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f2<=130 group by f1,f2,f3,f4;
31 echo select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f2<=130 group by f1,f2,f3,f4 having sum(f5)>=5000 and sum(f5)<10000;
32 select f1,f2,f3,f4,count(f5),sum(f5), count(f6),sum(f6)  from t1 where f1 >= 12 and f2<=130 group by f1,f2,f3,f4 having sum(f5)>=5000 and sum(f5)<10000;