I have the following table structure:
id num1 num2 num3 ... 1 1 2 3 2 1 3 2 3 1 2 3 . . . I use the following command to display the duplicates and the counts:
SELECT COUNT(num1), num1, num2, num3 FROM table GROUP BY num1, num2, num3 HAVING (COUNT(num1) > 1) AND (COUNT(num2) > 1) AND (COUNT(num3) > 1) This command gives me a count of 2. I would like to know how the second line could also be counted as a dublicate.