~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/group_min_max.result

  • Committer: Lee Bieber
  • Date: 2010-10-22 16:47:38 UTC
  • mfrom: (1841.1.7 drizzle_pbms)
  • Revision ID: kalebral@gmail.com-20101022164738-vv8w22b8towpb307
Merge Barry - fix bug 657830: PBMS build failure in GCC 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1608
1608
b       c       b       c
1609
1609
a       d       a       d
1610
1610
b       d       b       d
1611
 
select distinct t1.a1,t2.a1 from t1,t2 where t1.a1 >= '';
 
1611
select distinct t1.a1,t2.a1 from t1,t2;
1612
1612
a1      a1
1613
1613
a       a
1614
1614
a       b
1974
1974
BB
1975
1975
EXPLAIN SELECT a FROM t1 WHERE a='AA' GROUP BY a;
1976
1976
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1977
 
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   4       Using where; Using index
 
1977
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   2       Using where; Using index
1978
1978
EXPLAIN SELECT a FROM t1 WHERE a='BB' GROUP BY a;
1979
1979
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1980
1980
1       SIMPLE  t1      ref     PRIMARY PRIMARY 22      const   1       Using where; Using index
2120
2120
6       4
2121
2121
SHOW STATUS LIKE 'handler_read__e%';
2122
2122
Variable_name   Value
2123
 
Handler_read_key        23
 
2123
Handler_read_key        22
2124
2124
Handler_read_next       0
2125
2125
EXPLAIN (SELECT max(b), a FROM t1 GROUP BY a) UNION 
2126
2126
(SELECT max(b), a FROM t1 GROUP BY a);
2171
2171
INSERT INTO t3 SELECT a,MAX(b) FROM t1 GROUP BY a;
2172
2172
SHOW STATUS LIKE 'handler_read__e%';
2173
2173
Variable_name   Value
2174
 
Handler_read_key        12
 
2174
Handler_read_key        11
2175
2175
Handler_read_next       0
2176
2176
DELETE FROM t3;
2177
2177
FLUSH STATUS;