Je zou een join kunnen doen :
SELECT `id`, `number`, `colour` FROM `table`
INNER JOIN (SELECT COUNT(*) > 1 `duplicate` FROM `table` GROUP BY `colour`) `tmp` USING (`colour`);
Je zou een join kunnen doen :
SELECT `id`, `number`, `colour` FROM `table`
INNER JOIN (SELECT COUNT(*) > 1 `duplicate` FROM `table` GROUP BY `colour`) `tmp` USING (`colour`);