I am quite new to MySQL and it is great in reducing data through queries. However, it seems to be hard to get both records, if you want records containing duplicates.
The table looks like:
ID Value more columns..
1 4
1 4
1 5
2 4
3 5
3 5
4 4
4 5
I want both(!) records with duplicate values, like
ID Value more columns..
1 4
1 4
3 5
3 5
I need them both… as there is information in the other columns why the values are equal.
Thanks a lot!
This query selects all records that have at least one other record with the same values of
idandvalue: