summaryrefslogtreecommitdiff
path: root/mysql-test/r/count_distinct3.result
blob: 840c26669a12aece11f32a67d5619595b92ce1f1 (plain)
1
2
3
4
5
6
7
8
9
DROP TABLE IF EXISTS t1, t2;
CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
SELECT COUNT(*) FROM t1;
COUNT(*)
4201000
SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
# Begin cleanup
SET session myisam_sort_buffer_size = @orig_myisam_sort_buffer_size;
DROP TABLE t1;