summaryrefslogtreecommitdiff
path: root/mysql-test/r/count_distinct3.result
blob: 086e1360b0c2483691cb21c20e7bd7f3c16213a3 (plain)
1
2
3
4
5
6
7
8
DROP TABLE IF EXISTS t1, t2;
CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
SELECT COUNT(*) FROM t1;
COUNT(*)
4181000
SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
DROP TABLE t1;
set @@read_buffer_size=default;