CREATE TABLE t (id INTEGER);
SELECT MAX(id) FROM t GROUP BY id;
