I have a setup like this:
Username | IP
Foo | 1.2.3.4
Bar | 1.2.3.4
Baz | 1.2.3.6
Say I want to find alternative accounts of the user "Foo". Something like this should return:
Username | IP
Bar | 1.2.3.4
How would I do such a thing in one SQL query?