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