Menu
Good Evening,
I’m trying to find matches in my database based on players. My project is a online game tracking tool. I have a database full of games played. It has a unique ID called gameID.
I also have a gamePlayers table with members ID and what side they were on.
I’m trying to find games where multiple players have played together
[code]
SELECT * FROM `games` g JOIN `gamePlayers` gp on gp.gameID = g.gameID
WHERE gp.memberID IN (?)
If I pass in 4 members should I only get games where all 4 played the same game or will it return a game where one is found?
What can I do to only get full matches?
Regards