Using MySQL, I have a simple table that logs the IP Address that users login with:
TableIPLog
------------
ColumnID (primary key)
ColumnUserID (the ID of the user)
ColumnIP (the IP address the user used to login)
I want a query which will find the users which have shared an IP address!
To clarify, I want the query to only show rows where the IP Address has been used by more than 1 member.
I’m stumped.
You could go this route, this is for SQL-Server, but I’m sure there is a mysql equivalent:
Then you can use those ip’s to look up the usernames associated with them…
Edit: Thinking about this, it may not work depending on your implementation of the log, but it wouldn’t take much playing around with to get it to work… maybe using an exists clause…