Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
da0c70f5
Commit
da0c70f5
authored
May 24, 2002
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test re-grouping
parent
537f21ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
36 deletions
+36
-36
mysql-test/r/group_by.result
mysql-test/r/group_by.result
+20
-0
mysql-test/r/sel000004.result
mysql-test/r/sel000004.result
+0
-20
mysql-test/t/group_by.test
mysql-test/t/group_by.test
+16
-0
mysql-test/t/sel000004.test
mysql-test/t/sel000004.test
+0
-16
No files found.
mysql-test/r/group_by.result
View file @
da0c70f5
...
...
@@ -373,3 +373,23 @@ CONCAT(a, b) count(*)
abcdef 1
hijklm 2
DROP TABLE t1;
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;
One Two sum(Four)
1 1 16
1 2 16
1 3 16
drop table if exists t1;
mysql-test/r/sel000004.result
deleted
100644 → 0
View file @
537f21ff
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;
One Two sum(Four)
1 1 16
1 2 16
1 3 16
drop table if exists t1;
mysql-test/t/group_by.test
View file @
da0c70f5
...
...
@@ -283,3 +283,19 @@ SELECT 1 FROM t1 GROUP BY CONCAT(a, b);
INSERT
INTO
t1
values
(
'hij'
,
'klm'
);
SELECT
CONCAT
(
a
,
b
),
count
(
*
)
FROM
t1
GROUP
BY
1
;
DROP
TABLE
t1
;
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
;
mysql-test/t/sel000004.test
deleted
100644 → 0
View file @
537f21ff
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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment