mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
8a4b1667c1
sel000003.xml BitKeeper file /home/mwagner/work/bk/mysql/mysql-test/xml/tests/sel000003.xml
21 lines
718 B
XML
21 lines
718 B
XML
<?xml version="1.0" standalone="no"?>
|
|
|
|
<!-- This file is maintained by matt@mysql.com -->
|
|
|
|
<test name="sel000003">
|
|
|
|
<version value="3.22"/>
|
|
<version value="3.23"/>
|
|
|
|
<description>This test is just a simple select.</description>
|
|
<description>Testing count() function and GROUP BY clause.</description>
|
|
|
|
<sql>DROP TABLE IF EXISTS t</sql>
|
|
<sql>CREATE TABLE t (name CHAR(20) NOT NULL PRIMARY KEY, score SMALLINT NOT NULL, KEY(score))</sql>
|
|
<sql>INSERT INTO t VALUES ('Sasha', 20), ('Matt', 20), ('Monty', 10), ('David', 10), ('Tim', 10), ('Jeremy', 10)</sql>
|
|
|
|
<resultfile name="r/3.23/sel000003.result">
|
|
<sql>SELECT COUNT(*) as n, score FROM t GROUP BY score</sql>
|
|
</resultfile>
|
|
|
|
</test>
|