Moin Moin !
SELECT
id,COUNT(*) AS n
FROM
tabelle
WHERE
farbe='rot' OR farbe='blau'
GROUP BY
id,farbe
HAVING
n > 1 <---- evtl. auch COUNT(*) statt n
Und so sollte es mit mehreren identischen Paaren auch noch funktionieren.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so!"
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so!"