core reorg
[csql.git] / test / sql / Aggregate / aggregate_groupby1.sql
blobf8f9613fbf3a6ed9ea0d0ed08cfc56579c04c8f1
1 echo select f3, avg(f1) from t1 group by f3;
2 select f3, avg(f1) from t1 group by f3;
3 echo select f3, min(f2) from t1 group by f3;
4 select f3, min(f2) from t1 group by f3;
5 echo select f3, count(f1) from t1 group by f3;
6 select f3, count(f1) from t1 group by f3;
7 echo select f3, sum(f2) from t1 group by f3;
8 select f3, sum(f2) from t1 group by f3;
9 echo select f3, max(f1) from t1 group by f3;
10 select f3, max(f1) from t1 group by f3;
11 echo select f1, avg(f2) from t1 group by f1;
12 select f1, avg(f2) from t1 group by f1;
13 echo select f1, count(f3) from t1 group by f1;
14 select f1, count(f3) from t1 group by f1;
15 echo select f1, min(f2) from t1 group by f1;
16 select f1, min(f2) from t1 group by f1;
17 echo select f1, sum(f3) from t1 group by f1;
18 select f1, sum(f3) from t1 group by f1;
19 echo select f1, max(f1) from t1 group by f1;
20 select f1, max(f1) from t1 group by f1;
21 echo select f2, avg(f2) from t1 group by f2;
22 select f2, avg(f2) from t1 group by f2;
23 echo select f2, count(f2) from t1 group by f2;
24 select f2, count(f2) from t1 group by f2;
25 echo select f2, min(f2) from t1 group by f2;
26 select f2, min(f2) from t1 group by f2;
27 echo select f2, sum(f2) from t1 group by f2;
28 select f2, sum(f2) from t1 group by f2;
29 echo select f2, max(f2) from t1 group by f2;
30 select f2, max(f2) from t1 group by f2;