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