I have searched and everything I found refers to duplicates of the same field on a record. The database I am using stores computer hardware and among the fields are en0 and en1 which contain ip addresses. I need to find records with duplicate ips that exist in either field. For simplicity here is a sample table:
id serial_no en0 en1
1 0000001 10.200.5.102 10.200.5.103
2 0000002 10.200.6.102 10.200.6.103
3 0000003 10.200.5.110 10.200.5.102
I need the query to return records 1 and/or 3. Getting either duplicate is ok, best would be to return both.
Thanks