diff options
author | unknown <serg@serg.mysql.com> | 2002-12-04 10:16:19 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-12-04 10:16:19 +0100 |
commit | 5a0f1c749ea4882530d82b2704431e335895b28b (patch) | |
tree | c2682813bba0f73e16b3d8aefee0ef9f0a221967 /mysql-test | |
parent | 80b143c111fc3df20e3fe2dcfe4880c30b001498 (diff) | |
parent | faefac308f722b9669bec622c34c269c9341e675 (diff) | |
download | mariadb-git-5a0f1c749ea4882530d82b2704431e335895b28b.tar.gz |
merged
libmysql/libmysql.c:
Auto merged
sql/opt_sum.cc:
Auto merged
support-files/mysql.server.sh:
Auto merged
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/t/group_by.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/t/group_by.test b/mysql-test/t/group_by.test index 2f2f50c4085..328b696ac05 100644 --- a/mysql-test/t/group_by.test +++ b/mysql-test/t/group_by.test @@ -206,6 +206,7 @@ INSERT INTO t2 VALUES ('Web Interface','AAAAAAAA-AAA','id0001','',''); INSERT INTO t2 VALUES ('Host communication','AAAAA','id0001','',''); select value,description,bug_id from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA"; select value,description,COUNT(bug_id) from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA" group by value; +select value,description,COUNT(bug_id) from t2 left join t1 on t2.program=t1.product and t2.value=t1.component where program="AAAAA" group by value having COUNT(bug_id) IN (0,2); drop table t1,t2; @@ -234,6 +235,8 @@ CREATE TABLE t1 ( INSERT INTO t1 VALUES (1,1,1),(2,2,2),(2,1,1),(3,3,3),(4,3,3),(5,3,3); explain select userid,count(*) from t1 group by userid desc; select userid,count(*) from t1 group by userid desc; +select userid,count(*) from t1 group by userid desc having (count(*)+1) IN (4,3); +select userid,count(*) from t1 group by userid desc having 3 IN (1,COUNT(*)); explain select spid,count(*) from t1 where spid between 1 and 2 group by spid desc; explain select spid,count(*) from t1 where spid between 1 and 2 group by spid; select spid,count(*) from t1 where spid between 1 and 2 group by spid; |