mariadb/mysql-test/xml/tests/sel000003.xml
mwagner@evoq.home.mwagner.org 8a4b1667c1 sel000002.xml BitKeeper file /home/mwagner/work/bk/mysql/mysql-test/xml/tests/sel000002.xml
sel000003.xml	BitKeeper file /home/mwagner/work/bk/mysql/mysql-test/xml/tests/sel000003.xml
2000-10-13 02:46:16 -05:00

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>