mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	Added new big select test mysql-test/r/rpl000004.a.result: Cleanup mysql-test/r/show_check.result: Cleanup mysql-test/r/shw000001.result: Cleanup mysql-test/t/fulltext_multi.test: Cleanup mysql-test/t/fulltext_order_by.test: Cleanup mysql-test/t/rpl000001.test: Cleanup mysql-test/t/rpl000002.test: Cleanup mysql-test/t/rpl000003.test: Cleanup mysql-test/t/rpl000004.test: Cleanup mysql-test/t/rpl000005.test: Cleanup mysql-test/t/rpl000006.test: Cleanup mysql-test/t/rpl000007.test: Cleanup mysql-test/t/rpl000008.test: Cleanup mysql-test/t/rpl000009.test: Cleanup mysql-test/t/rpl000010.test: Cleanup mysql-test/t/rpl000011.test: Cleanup mysql-test/t/rpl000012.test: Cleanup mysql-test/t/rpl000013.test: Cleanup mysql-test/t/rpl000014.test: Cleanup mysql-test/t/rpl000015.test: Cleanup mysql-test/t/rpl000016.test: Cleanup mysql-test/t/sel000001.test: Cleanup mysql-test/t/sel000002.test: Cleanup mysql-test/t/sel000003.test: Cleanup mysql-test/t/sel000031.test: Cleanup mysql-test/t/sel000032.test: Cleanup mysql-test/t/sel000033.test: Cleanup mysql-test/t/sel000100.test: Cleanup mysql-test/t/show_check.test: Cleanup mysql-test/t/shw000001.test: Cleanup
		
			
				
	
	
		
			19 lines
		
	
	
		
			485 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			485 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# sel000003
 | 
						|
#
 | 
						|
# Versions
 | 
						|
# --------
 | 
						|
#   3.22
 | 
						|
#   3.23
 | 
						|
#
 | 
						|
# Description
 | 
						|
# -----------
 | 
						|
# This test is just a simple select.
 | 
						|
# Testing count() function and GROUP BY clause.
 | 
						|
#
 | 
						|
 | 
						|
DROP TABLE IF EXISTS t1;
 | 
						|
CREATE TABLE t1 (name CHAR(20) NOT NULL PRIMARY KEY, score SMALLINT NOT NULL, KEY(score));
 | 
						|
INSERT INTO t1 VALUES ('Sasha', 20), ('Matt', 20), ('Monty', 10), ('David', 10), ('Tim', 10), ('Jeremy', 10);
 | 
						|
@r/sel000003.result SELECT COUNT(*) as n, score FROM t1 GROUP BY score;
 | 
						|
drop table t1;
 |