Smoking попробуй ещё такой вариант: SELECT DISTINCT t1.* FROM test t1, test t2 WHERE t1.id < t2.id AND t1.field = t2.field