次のソリューションを使用できます: SELECT * FROM table_name WHERE NOT ID IN ( SELECT MIN(ID) FROM table_name GROUP BY TICKETNO )