1
Well, I have a table that returns 5 users, and among these 5 may be equal teamID, example:
usuario1 = teamid: 51
usuario2 = teamid: 51
usuario3 = teamid: 55
usuario4 = teamid: 55
usuario5 = teamid: null
i would like to know how I would define a group for them by id equal being, if who is id 51, belongs to team 1, id 52 belongs to team 2, which has id NULL has no time(detail there may be occasions that all are of the same id).
here is an example of how it works, there are 2 teams, winning team has a full group, losing team has 1 group of two people, but I’m showing the ID instead of team 1 and 2.3 etc..