आप एक शामिल कर सकते हैं :
SELECT `id`, `number`, `colour` FROM `table`
INNER JOIN (SELECT COUNT(*) > 1 `duplicate` FROM `table` GROUP BY `colour`) `tmp` USING (`colour`);
आप एक शामिल कर सकते हैं :
SELECT `id`, `number`, `colour` FROM `table`
INNER JOIN (SELECT COUNT(*) > 1 `duplicate` FROM `table` GROUP BY `colour`) `tmp` USING (`colour`);