I want to find records that are exactly the same in all their fields and show them. I have the following table:
I apply the following query:
SELECT *
FROM control
WHERE (no IN(SELECT no
FROM control
GROUP BY no
HAVING COUNT(*)>1)
)
AND (clave IN(SELECT clave
FROM control
GROUP BY clave
HAVING COUNT(*)>1)
)
AND (nombre IN(SELECT nombre
FROM control
GROUP BY nombre
HAVING COUNT(*)>1)
)
AND (resultado IN(SELECT resultado
FROM control
GROUP BY resultado
HAVING COUNT(*)>1)
)
But as a result, he throws this at me:
I should only throw the first four as they coincide in all their fields.