core reorg
[csql.git] / test / sql / Aggregate / char_datetypes_min.sql
blobcf854c31ee1d9b16bed9c99863ef756d00f8067c
1 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 group by f1,f2;
2 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 group by f1,f2;
3 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 group by f1,f2 having min(f4)>='K';
4 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 group by f1,f2 having min(f4)>='K';
5 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 group by f1,f2;
6 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 group by f1,f2;
7 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 group by f1,f2 having min(f8)>='11:59:55';
8 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 group by f1,f2 having min(f8)>='11:59:55';
9 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f1<15 group by f1,f2;
10 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f1<15 group by f1,f2;
11 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f1<15 group by f1,f2 having min(f9)>='2009-03-03 11:59:59';
12 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f1<15 group by f1,f2 having min(f9)>='2009-03-03 11:59:59';
13 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f1<15 group by f1,f2 having min(f4)>='K' and min(f8) <'11:59:56';
14 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f1<15 group by f1,f2 having min(f4)>='K' and min(f8) <'11:59:56';
15 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f2<130 group by f1,f2 ;
16 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f2<130 group by f1,f2 ;
17 echo select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f2<130 group by f1,f2 having min(f7)>='2009/3/2' and min(f9)<>'2009-03-01 11:59:59';
18 select f1,f2,min(f4),min(f7),min(f8),min(f9)  from t1 where f1 >= 12 and f2<130 group by f1,f2 having min(f7)>='2009/3/2' and min(f9)<>'2009-03-01 11:59:59';
19 echo select f7,f8,f9,min(f4) from t1 group by f7,f8,f9;
20 select f7,f8,f9,min(f4) from t1 group by f7,f8,f9;
21 echo select f9,f7,f8,min(f4) from t1 group by f7,f8,f9;
22 select f9,f7,f8,min(f4) from t1 group by f7,f8,f9;
23 echo select f7,f8,f9,min(f4) from t1 group by f7,f9,f8;
24 select f7,f8,f9,min(f4) from t1 group by f7,f9,f8;
25 echo select f7,f8,f9,min(f4) from t1 group by f7,f9,f8 having min(f4)>='K' and min(f4) <'Q';
26 select f7,f8,f9,min(f4) from t1 group by f7,f9,f8 having min(f4)>='K' and min(f4) <'Q';
27 echo select f4,f8,f9,min(f7) from t1 group by f4,f8,f9;
28 select f4,f8,f9,min(f7) from t1 group by f4,f8,f9;
29 echo select f4,f8,f9,min(f7) from t1 group by f4,f8,f9 having min(f7)<='2009-03-04' and min(f7) >'2009-03-02' ;
30 select f4,f8,f9,min(f7) from t1 group by f4,f8,f9 having min(f7)<='2009-03-04' and min(f7) >'2009-03-02' ;
31 echo select f9,f7,f4,min(f8) from t1 group by f4,f7,f9;
32 select f9,f7,f4,min(f8) from t1 group by f4,f7,f9;
33 echo select f9,f7,f4,min(f8) from t1 group by f4,f7,f9 having min(f8)<='11:59:59' and min(f8) >'11:59:57' ;
34 select f9,f7,f4,min(f8) from t1 group by f4,f7,f9 having min(f8)<='11:59:59' and min(f8) >'11:59:57' ;
35 echo select f7,f8,f4,min(f9) from t1 group by f4,f7,f8;
36 select f7,f8,f4,min(f9) from t1 group by f4,f7,f8;
37 echo select f7,f8,f4,min(f9) from t1 group by f4,f7,f8 having min(f9)<='2009-03-05 11:59:59' and min(f9) >'2009-03-02 11:59:59' ;
38 select f7,f8,f4,min(f9) from t1 group by f4,f7,f8 having min(f9)<='2009-03-05 11:59:59' and min(f9) >'2009-03-02 11:59:59' ;