I have a column with values i.e.
number id
1 111
1 111
3 222
4 222
5 333
I'm checking if the I.D has more than one instance and if the number is the same as the second or more instance. So here, it would return 1 because there is 2x 1's with id 111, but 222 doesn't return because 3 and 4 are not the same.
How would I do such a query?
I was told that I could do two queries or more and on the second or more query I would ignore the first instance.