I´d like to check for dupes in MySQL comparing two columns:
Linked duplicate doesn't match as it's about finding the duplicate values on specific columns. This question is about finding the rows which have said duplicate values.
Example:
id Column1 Column2
-------------------------
3 1 <-This row is a dupe
3 2
3 3
3 1 <-This row is a dupe
I'd like to have a list like this:
id Column1 Column2
-------------------------
3 1
3 1
How should this query look like?
My thinking:
SELECT * FROM table
WHERE Column1 && Column2 is a dupe ;)