$ 0 0 How about CREATE VIEW myview as SELECT id, count(*) as "COUNT" FROM mytable GROUP BY id; ? - Lars