1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

just to check for GROUP by bug

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-05-22 16:36:24 +03:00
parent 53000468d1
commit 692f4af862

View File

@ -0,0 +1,16 @@
drop table if exists t1;
create table t1 (One int unsigned, Two int unsigned, Three int unsigned, Four int unsigned);
insert into t1 values (1,2,1,4);
insert into t1 values (1,2,2,4);
insert into t1 values (1,2,3,4);
insert into t1 values (1,2,4,4);
insert into t1 values (1,1,1,4);
insert into t1 values (1,1,2,4);
insert into t1 values (1,1,3,4);
insert into t1 values (1,1,4,4);
insert into t1 values (1,3,1,4);
insert into t1 values (1,3,2,4);
insert into t1 values (1,3,3,4);
insert into t1 values (1,3,4,4);
select One, Two, sum(Four) from t1 group by One,Two;
drop table if exists t1;