I have 2 tables
User -userid -group //other unrelated columns Logs -userid -ip
What I want to do is using an IP query the Logs table for all userids and then get the groups of all the userids. Is this possible with a single query? If not is there anyway to speed it up other than querying every User row with the userid?
Something like this?